C++.net 单行代码会破坏智能感知?
我担任 c++.net 开发人员已经四年了,并且遇到了一些奇怪的特质。然而,最令人沮丧的是当智能感知停止工作时。
我有以下功能:
Void panelXYReport::ProcessResult()
{
try
{
this->panelReportBase::ProcessResult();
this->RequestGetSelectedTestpoints(this, selectedTestpointNumbers); //<- THIS LINE
for each(rptTestpoint^ thisTestpoint in this->TestpointCollectedValues)
...
智能在该功能的第一行至第三行工作正常。一旦我点击那里的事件,智能感知就会停止工作,直到函数结束。我所说的停止工作的意思是,如果光标位于该行之前,那就没问题。后来就不行了。以下是声明和活动信息:
public:
/// <summary>
/// event to ask the testpoint grid which testpoints are selected
/// </summary>
event TestpointListEventDelegate<long>^ RequestGetSelectedTestpoints;
有什么想法吗? 提前致谢。
I've been a c++.net developer for four years, and have run into several strange idiosynchrocies. However, the most frustrating one is when intellisense, just stops working.
I have the following function:
Void panelXYReport::ProcessResult()
{
try
{
this->panelReportBase::ProcessResult();
this->RequestGetSelectedTestpoints(this, selectedTestpointNumbers); //<- THIS LINE
for each(rptTestpoint^ thisTestpoint in this->TestpointCollectedValues)
...
Intellisence works fine on the first - third line of the function. Once I hit the event there, intellisense just stops working until the end of the function. What I mean by stops working, is that if the cursor is beofre that line, its fine. Afterwards, it doesn't. Here is the declaration and event information:
public:
/// <summary>
/// event to ask the testpoint grid which testpoints are selected
/// </summary>
event TestpointListEventDelegate<long>^ RequestGetSelectedTestpoints;
Any thoughts?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以提高智能性的 Visual Studio 第三方插件(例如 Visual Assist X)是否可以解决这个问题?
或者只是升级到 Visual Studio 的新版本?
Wouldn't a thirdparty addon for visual studio which improves intellisence maybe solve this, such as Visual Assist X?
Or maybe just upgrading to a newer version of Visual Studio?