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

请回答一个问题。


当前回答

不使用鼠标打开文件:

CTRL + ALT + A(打开命令窗口) 后面跟着>打开somedoc

我还没看到这个。真不敢相信这里有这么多酷的快捷方式!

其他回答

粘贴在循环Ctrl + Shift + V

展开折叠当前块- Ctrl + M + M

代码片段-用于创建属性类型prop和按制表符。

格式的文档

   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+Tab在打开的文档之间来回翻转。

Visual Studio实际上提供了一个很好的Ctrl+Tab实现;我特别欣赏的是,Ctrl+Tab文档的激活顺序是最近使用的顺序,而不是简单的“从左到右”的顺序,这样Ctrl+Tab(按一次并释放)就可以重复使用,在两个最近使用的文档之间来回翻转,即使有两个以上的文档打开。

Ctrl+M, o可以折叠和展开特定文件中的所有代码部分。

当我在ASP上使用“开始调试”时,我讨厌关闭额外的选项卡。网络应用程序。相反,我通常使用“启动而不调试”(Ctrl+F5)。 如果我最终需要调试,我使用Ctrl+Alt+P(附加到进程)并选择WebDev.WebServer.exe。然后我仍然在我的前一页,我只有一个标签打开。