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

请回答一个问题。


当前回答

打开和关闭线缠绕

Ctrl + E, Ctrl + W

有时,您希望看到所有缩进到位的代码流;有时候你需要在GridView声明中看到所有的50个属性。这让你可以轻松地来回切换。

其他回答

按Ctrl+Shift+V粘贴/循环通过剪贴板环

F9:切换和取消切换断点!

按Ctrl+I进行增量搜索

没有什么比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.