你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
你最喜欢的Visual Studio快捷键是什么?我总是把我的手放在键盘上,远离鼠标!
请回答一个问题。
当前回答
Ctrl + Shift + Alt + B 重建方案。
Ctrl + R, Ctrl + T 调试当前上下文中的测试
其他回答
格式的文档
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+Shift+R -> Refactor with Resharper
如果你的键盘设置设置为“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 + Shift + S 保存所有更改的文件。救了我好几次。
按用法,配对:
Ctrl+Enter:在当前行上方插入空行。 Ctrl+Shift+Enter:在当前行下方插入空行。