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

请回答一个问题。


当前回答

使用emacs一样的键绑定,它是TAB:P

其他回答

Ctrl + K + C -设置当前所选代码为注释 Ctrl + K + U -设置当前所选注释为代码

简单的一个。F8:转到下一次构建错误。 发现现在它将在任何类型的列表窗口(通常聚集在底部的那些)中工作。

格式的文档

   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.

片段

每个片段都有一个快捷方式,您可以通过输入单词然后按tab键来访问。我用得最多的是标准属性定义;只需输入属性,然后输入制表符。

Ctrl+C, Ctrl+V复制当前行 按Ctrl+L删除当前行 按Ctrl+F3搜索当前选择 Ctrl+K, Ctrl+K创建书签(这很有用) Ctrl+K, Ctrl+N转到下一个书签

还有更有趣的事情: 按“Ctrl+/”将光标放入可以输入命令的框中。 例如,按Ctrl+/并输入“>of”,现在开始输入项目中的文件名,它将自动完成。这是在当前解决方案中打开文件的一种非常快速的方法。