你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
当前回答
按Ctrl+I进行增量搜索
其他回答
Ctrl+K, Ctrl+D // Auto-(Re)格式
参见:答案
格式的文档
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.
我刚刚发现Shift+F11步出当前函数。 当你想在foo(bar(baz())中调试函数foo时,这是非常有用的。使用F11, Shift+F11跳进和跳出bar和baz。
Ctrl + Shift + Alt + B 重建方案。
Ctrl + R, Ctrl + T 调试当前上下文中的测试
寻找并替换
Ctrl+F和Ctrl+H -查找,查找和替换 Ctrl+shift+F和Ctrl+shift+H -分别在文件中查找,在文件中查找和替换
“在文件中查找”对我来说是一个巨大的生产力助推器。它不是逐个跳转到每个结果,而是向您显示整个项目或解决方案中的结果列表。它使查找示例代码或查看某个函数是否在任何地方使用变得非常简单。