你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
当前回答
用F7构建,然后用F8逐一查看错误和警告。
其他回答
CTRL + Alt +↓
这将导致打开的文件列表在编辑器窗口的右上角弹出。最酷的是,它是可搜索的,所以你可以离开键,开始输入文件名,将焦点转移到该文件。当你有无数文件打开时非常方便。
格式的文档
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 + -和相反的Ctrl + Shift + -。
将光标向后(或向前)移动到它所在的最后一个位置。不再需要向后滚动或PgUp/PgDown来查找您的位置。
这将在Visual Studio中切换打开窗口:
Ctrl + tab和相反的Ctrl + Shift + tab
雷说的。Ctrl + ..
我真的不喜欢智能标记(那些看起来想要帮助你的蓝色和红色下划线),直到我发现你不需要浪费时间试图将鼠标悬停在菜单显示的精确像素上。
我认为是Ctrl +。打开智能标签菜单每天为我节省了大约5分钟,并大大降低了我的血压。
Ctrl+]用于匹配大括号和圆括号。
Ctrl+Shift+]选择括号之间的代码。