你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
当前回答
增量搜索-按Ctrl + I
基本上就是没有对话框的查找对话框。只要开始输入你想要搜索的内容(看看底部状态栏的位置,看看你输入了什么)。再次按Ctrl + I或F3查找下一个实例。按Escape退出。通过按Ctrl + I两次开始新的搜索,重复上一次搜索。
其他回答
格式的文档
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 + X和Ctrl + C用于剪切/复制文本;但你知道吗,在VS中,如果你想剪切或复制一行,你不必先选择文本。如果没有选择,则整行将被剪切或复制。
我不认为有任何捷径可供我提及,所以让我提到一个捷径,我希望Visual Studio有:-) Eclipse中有一个我非常怀念的快捷方式是“Open Resource”(Ctrl + Shift + S),它允许你输入文件名,IDE就会显示与之匹配的文件。在处理投标代码库时非常有用!
我沉迷于http://blog.jpboodhoo.com/UsefulVSKeySequencesShortcuts.aspx的一些非常微妙的东西
例如,Alt-W U在全屏模式下,当内容太多时,可以自动折叠所有内容
组合Ctrl+F3和Ctrl+Shift+F3查找选中的和以前选中的项目非常适合我。