使用Visual Studio IntelliSense从右括号中查看块声明吗? [英] Visual Studio IntelliSense for viewing block declarations from the closing brace?
问题描述
我真的很好奇是否有人知道 Visual Studio的IntelliSense 是否可以配置为通过悬停在代码块的右括号(或类似的东西)上来显示代码块的声明.
I'm really curious if anyone knows if Visual Studio's IntelliSense can be configured to display a code block's declaration by hovering over the block's closing brace (or something similar).
我不必在注释中标记较长的代码块,而是将鼠标悬停在右花括号上以查看它结束的块.
Rather than having to mark long code blocks with a comment, I would much rather hover over the closing brace to view which block it ends.
如果我的意思不清楚,请想象您有以下代码块:
If what I'm saying isn't clear, imagine you had the code block below:
if (typeof(obj) is Int32)
{
///...PROGRAM LOGIC...
}
在此示例中,如果我要将插入号移动到末端支架,请右键单击末端支架,或将鼠标悬停在其上.会显示一个弹出窗口,在顶部给我原始声明:
In this example, if I were to move the caret to the end brace, right-click the end brace, or simply hover over it. A popup window would show giving me the original declaration at the top:
if (typeof(obj) is Int32) { //...
另外,我很想知道是否可以在 Eclipse 中完成;我已经在 此处 提出了这个问题.
Also, I'm interested to know if this can be done in Eclipse; I've asked that question here.
推荐答案
现在在Visual Studio 2015中可用.
This is now available in Visual Studio 2015.
这篇关于使用Visual Studio IntelliSense从右括号中查看块声明吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!