你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!

请回答一个问题。


当前回答

格式的文档

   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.

其他回答

显示隐藏窗口

ctrl+alt+L +解决方案资源管理器 ctrl+alt+S +服务器资源管理器 ctrl+alt+O +输出 ctrl+alt+X +工具箱 ctrl+shift+W, 1 +手表 ctrl+\, E +错误列表 ctrl+shift+ c++类视图

我喜欢把屏幕上的所有空间都用来写代码,把其他的东西都藏起来。这些快捷键使这些窗口在我需要的时候很方便,所以它们可以在其他时间不碍事。

按Ctrl + W选择当前单词

库存Visual Studio?F12 - Edit.GoToDefinition。

拥有DevExpress的重构!不过,installed意味着Ctrl + '是我一直以来的最爱;)

Ctrl+Alt+P ->附加到进程

Ctrl + Shift + Alt + B 重建方案。

Ctrl + R, Ctrl + T 调试当前上下文中的测试