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

请回答一个问题。


当前回答

Ctrl+Shift+S // 保存

Ctrl+Shift+B //构建

其他回答

按Ctrl + K, D自动格式化代码。

格式的文档

   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+C将复制当前行。 大多数其他编辑什么也不做。复制一行后,粘贴会将该行放置在当前该行之前,即使您位于该行中间。大多数其他编辑器会从你所在的位置开始粘贴,这几乎不是你想要的。

复制一行就是:按住Ctrl,按c,然后v。 (Ctrl + C Ctrl + V)

Ctrl+K, Ctrl+C注释一个块 Ctrl+K, Ctrl+U取消注释块

按Ctrl+I进行增量搜索