你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
你最喜欢的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 + K + D绝对是我的最爱。比起其他快捷方式,我更喜欢使用它。它有助于根据我们指定的缩进和代码格式设置格式化文档。
按Ctrl+Shift+V粘贴/循环通过剪贴板环
Alt+F4 ;)
但更严肃的是,在我有限的VS使用中,Ctrl+Space可能被我击中了很多。
插入片段:
Ctrl + K, Ctrl + S
我经常用if来表示try..catch和#region
粘贴在循环Ctrl + Shift + V
展开折叠当前块- Ctrl + M + M
代码片段-用于创建属性类型prop和按制表符。