C++.net 单行代码会破坏智能感知?

发布于 2024-11-16 11:09:41 字数 762 浏览 0 评论 0原文

我担任 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听闻余生 2024-11-23 11:09:41

可以提高智能性的 Visual Studio 第三方插件(例如 Visual Assist X)是否可以解决这个问题?

Visual Assist X 在默认情况下进行了改进
具有增强列表框的 IntelliSense,
频繁出现的参数信息
和有用的悬停工具提示
几乎所有符号。即时查看
符号的上下文和定义
只需点击它即可。将鼠标悬停在
浏览代码时看到的符号
覆盖其类的其他成员,
相关枚举等。获取
无需打猎即可获得所需信息
为了它。

或者只是升级到 Visual Studio 的新版本?

Wouldn't a thirdparty addon for visual studio which improves intellisence maybe solve this, such as Visual Assist X?

Visual Assist X improves on default
IntelliSense with Enhanced Listboxes,
parameter information that is frequent
and helpful, and hovering tooltips for
virtually all symbols. Instantly view
the context and definition of a symbol
just by clicking on it. Hover over
symbols while browsing code to see
overrides, other members of its class,
related enums, etc. Get the
information you need without hunting
for it.

Or maybe just upgrading to a newer version of Visual Studio?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文