你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
当前回答
Ctrl + -和相反的Ctrl + Shift + -。
将光标向后(或向前)移动到它所在的最后一个位置。不再需要向后滚动或PgUp/PgDown来查找您的位置。
这将在Visual Studio中切换打开窗口:
Ctrl + tab和相反的Ctrl + Shift + tab
其他回答
显示隐藏窗口
ctrl+alt+L +解决方案资源管理器 ctrl+alt+S +服务器资源管理器 ctrl+alt+O +输出 ctrl+alt+X +工具箱 ctrl+shift+W, 1 +手表 ctrl+\, E +错误列表 ctrl+shift+ c++类视图
我喜欢把屏幕上的所有空间都用来写代码,把其他的东西都藏起来。这些快捷键使这些窗口在我需要的时候很方便,所以它们可以在其他时间不碍事。
Ctrl+K, Ctrl+D // Auto-(Re)格式
参见:答案
如果你的键盘设置设置为“Visual c# 2005”,窗口切换和文本编辑和弦是非常棒的。按第一个Ctrl + Key组合键,然后松开并按下一个字母。
Ctrl+E, C:注释所选文本 Ctrl+E, U:取消所选文本的注释 Ctrl+W, E:显示错误列表 Ctrl+W, J:显示对象浏览器 Ctrl+W, S:显示解决方案资源管理器 Ctrl+W, X:显示工具箱
我仍然使用F4来显示属性窗格,所以我不知道那个和弦。
如果你去到工具>自定义菜单选项并按键盘按钮,它会给你一个命令列表,你可以搜索,看看是否有一个快捷键可用,或者你可以选择“按快捷键:”文本框并测试你想要分配的快捷键,看看它们是否冲突。
附录:我刚刚发现了另一个很棒的方法,我认为我会经常使用:Ctrl+K, S会弹出一个智能提示框,询问你想用什么来包围所选文本。这正是我需要的所有时候,我需要包装一个块在条件或try/catch。
格式的文档
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.
F9:切换和取消切换断点!