visual studio中常用的快捷键
2013-07-03 17:09
218 查看
1. F5:启动调试
![](http://new.51cto.com/files/uploadimg/20090430/1528300.jpg)
2. F7 /Shift-F7:显示代码窗口或显示设计器窗口
![](http://new.51cto.com/files/uploadimg/20090430/1528301.jpg)
3.Alt-Enter:显示选中对象的属性(这是个常用的windows快捷键,可以用显示目录和文件的属性)
![](http://new.51cto.com/files/uploadimg/20090430/1528302.jpg)
4.F6 / Shift-F6 / Ctrl-Shift-B:生成解决方案/生成项目/生成解决方案
![](http://new.51cto.com/files/uploadimg/20090430/1528303.jpg)
5.Shift-Alt-C: 在项目里添加类
![](http://new.51cto.com/files/uploadimg/20090430/1528304.jpg)
6.Ctrl-K + Ctrl-C: 注释一段选择代码
![](http://new.51cto.com/files/uploadimg/20090430/1528305.jpg)
7.Ctrl-K + Ctrl-U: 取消一段选择代码的注释
![](http://new.51cto.com/files/uploadimg/20090430/1528306.jpg)
8.Ctrl-M + Ctrl-O / Ctrl-M + Ctrl-P: 折叠定义/展开所有代码(停止大纲显示 )
![](http://new.51cto.com/files/uploadimg/20090430/1528307.jpg)
9.Ctrl-M + Ctrl+M:展开或折叠代码段(切换大纲显示)
![](http://new.51cto.com/files/uploadimg/20090430/1528308.jpg)
10.Ctrl-B + Ctrl-T:切换代码书签
![](http://new.51cto.com/files/uploadimg/20090430/1528309.jpg)
11.Ctrl-Alt-P:附加调试器的进程
![](http://new.51cto.com/files/uploadimg/20090430/15283010.jpg)
12.Ctrl-Alt-L:显示解决方案浏览器
![](http://new.51cto.com/files/uploadimg/20090430/15283011.jpg)
13.Ctrl-Shift-A / Alt-Shift-A:在项目里添加项/在项目里移除项
![](http://new.51cto.com/files/uploadimg/20090430/15283012.jpg)
以上是原作者认为提出13个最长常用的,我觉得13个还少了,至少还补充一下这些:
1. 强迫智能感知:Ctrl+J;
2.强迫智能感知显示参数信息:Ctrl-Shift-空格;
3.格式化整个块:Ctrl+K+F
4. 检查括号匹配(在左右括号间切换): Ctrl +]
5. 选中从光标起到行首(尾)间的代码: Shift + Home(End)
6. 在方法定义和调用之点切换:Ctrl+Shift+7(8)
7. 设置断点:F9
8. 使用Tab增加缩进,Shift+Tab减少缩进
9. 格式化整篇代码: Ctrl+K, D
10. 设置书签:Ctrl+B+T,跳转书签:Ctrl+B+N
![](http://new.51cto.com/files/uploadimg/20090430/1528300.jpg)
2. F7 /Shift-F7:显示代码窗口或显示设计器窗口
![](http://new.51cto.com/files/uploadimg/20090430/1528301.jpg)
3.Alt-Enter:显示选中对象的属性(这是个常用的windows快捷键,可以用显示目录和文件的属性)
![](http://new.51cto.com/files/uploadimg/20090430/1528302.jpg)
4.F6 / Shift-F6 / Ctrl-Shift-B:生成解决方案/生成项目/生成解决方案
![](http://new.51cto.com/files/uploadimg/20090430/1528303.jpg)
5.Shift-Alt-C: 在项目里添加类
![](http://new.51cto.com/files/uploadimg/20090430/1528304.jpg)
6.Ctrl-K + Ctrl-C: 注释一段选择代码
![](http://new.51cto.com/files/uploadimg/20090430/1528305.jpg)
7.Ctrl-K + Ctrl-U: 取消一段选择代码的注释
![](http://new.51cto.com/files/uploadimg/20090430/1528306.jpg)
8.Ctrl-M + Ctrl-O / Ctrl-M + Ctrl-P: 折叠定义/展开所有代码(停止大纲显示 )
![](http://new.51cto.com/files/uploadimg/20090430/1528307.jpg)
9.Ctrl-M + Ctrl+M:展开或折叠代码段(切换大纲显示)
![](http://new.51cto.com/files/uploadimg/20090430/1528308.jpg)
10.Ctrl-B + Ctrl-T:切换代码书签
![](http://new.51cto.com/files/uploadimg/20090430/1528309.jpg)
11.Ctrl-Alt-P:附加调试器的进程
![](http://new.51cto.com/files/uploadimg/20090430/15283010.jpg)
12.Ctrl-Alt-L:显示解决方案浏览器
![](http://new.51cto.com/files/uploadimg/20090430/15283011.jpg)
13.Ctrl-Shift-A / Alt-Shift-A:在项目里添加项/在项目里移除项
![](http://new.51cto.com/files/uploadimg/20090430/15283012.jpg)
以上是原作者认为提出13个最长常用的,我觉得13个还少了,至少还补充一下这些:
1. 强迫智能感知:Ctrl+J;
2.强迫智能感知显示参数信息:Ctrl-Shift-空格;
3.格式化整个块:Ctrl+K+F
4. 检查括号匹配(在左右括号间切换): Ctrl +]
5. 选中从光标起到行首(尾)间的代码: Shift + Home(End)
6. 在方法定义和调用之点切换:Ctrl+Shift+7(8)
7. 设置断点:F9
8. 使用Tab增加缩进,Shift+Tab减少缩进
9. 格式化整篇代码: Ctrl+K, D
10. 设置书签:Ctrl+B+T,跳转书签:Ctrl+B+N
相关文章推荐
- Visual Studio 中常用的快捷键
- Visual Studio常用小技巧一:代码段+快捷键+插件=效率
- visual studio 2013 快捷键大全、VS2013常用快捷键
- Visual Studio我常用的快捷键
- Visual studio 2013常用的快捷键
- Visual Studio中最常用的快捷键
- visual studio 2013 中常用的一些快捷键
- Visual Studio中最常用的13个快捷键
- Visual Studio 最常用的13个快捷键
- Visual Studio 2013常用快捷键
- 【转】Visual Studio 2012常用快捷键总结
- visual studio 2010最常用的几个快捷键(个人总结保存查看) .
- Visual Studio中最常用的13个快捷键
- Visual Studio中最常用的13个快捷键
- Visual Studio 最常用快捷键 代码提示-强迫智能感知 类似Eclipse的Alt+'/'快捷键
- visual studio 2013 快捷键大全、VS2013常用快捷键
- 【转】Notepad++,Eclipse和Visual Studio 2005常用快捷键对比
- visual studio 2013 快捷键大全、VS2013常用快捷键
- Visual Studio中常用的快捷键
- Visual Studio 最常用的13个快捷键