你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
当前回答
没有什么比Ctrl+Shift+B -构建解决方案!!
至于导航控制,Ctrl+-和Ctrl++是很好的… 但我更喜欢Ctrl+K+K—>创建书签…和Ctrl+K+N—>导航到下一个书签…可怕的东西……
其他回答
格式的文档
Ctrl+K, Ctrl+D
On an aspx page, this takes care of properly indenting all of your markup and ensures that everything is XHTML compliant (adds quotes to attributes, corrects capitalization, closes self-closing tags). I find that this makes it much easier to find mismatched tags and to make sure that my markup makes sense. If you don't like how it's indenting, you can control which tags go on their own line and how much space they get around them under Tools/Options/Text Editor/HTML/Format/Tag Specific Options. In your C# or VB code, this will correct any capitalization or formatting issues that didn't get caught automatically. For CSS files, you can choose compact (one definition per line), semi-expanded, or expanded (each rule on its own line); and you can choose how it handles capitalization.
希望这篇文章还没有被贴出来,如果有的话,我很抱歉。我刚刚在Visual Studio 2008中发现了一个有用的快捷键。打开“快速观察”窗口后,选中包含字符串值的行,然后按空格键。文本可视化器窗口将显示其中的值。
我发现它对于检查jQuery内层文本值非常有用,因为默认情况下,QuickWatch窗口太小,无法完全显示较长的字符串。
片段
每个片段都有一个快捷方式,您可以通过输入单词然后按tab键来访问。我用得最多的是标准属性定义;只需输入属性,然后输入制表符。
以下是我最喜欢的调试键盘快捷键:
F5:启动调试器/运行到下一个断点 Shift+F5:停止调试 F10:跳过下一个语句 F11:进入下一个语句 Ctrl+F10:运行到光标所在位置 F9:添加或删除断点
评论
Ctrl+K, Ctrl+C -注释当前项目 Ctrl+K, Ctrl+U -取消当前项目的注释
这样做的好处是它适用于你当前所在的元素——你不需要选择一整行VB代码来注释它,例如,你只需要输入Ctrl+K, Ctrl+C来注释当前行。在一个aspx页面上,你可以注释掉一大块代码——例如整个ListView——只需要到第一行并按Ctrl+K, Ctrl+C。