您的位置:首页 > 编程语言 > C语言/C++

visual studio 2005 C++ 快捷键

2010-05-06 20:29 381 查看
ok:

Ctrl+K,C: 注释选定内容
Ctrl+K,U: 取消选定注释内容

F12
Go to definition of identifier under cursor
Ctrl+Shift+8
Return to where you last hit F12
Shift+Alt+F10
Show smart tag for identifier under cursor (look for small blue or red lines under the identifier)
Ctrl+TAB
Toggle between windows in Visual Studio
Alt+W, L
Close all windows
Ctrl+Alt+L
Open the Solution Explorer (to find your file after you just closed them all)
Ctrl+F2
Jump to the Navigation Bar (hit TAB to get to the right side)
Ctrl+I
Incremental search (this is way better than Ctrl+F)
Ctrl+F3
Find word under cursor
F3
Find again
Shift+F3
Find again in the opposite direction
Ctrl+Shift+F
Find in files
F8
Jump to next found line (after find in files) or error line (after build)
Ctrl+PageDown
Toggle between Design and Source views in .aspx files
F7
Jump to code behind file from .aspx files
Ctrl+K, Ctrl+C
Comment out selection
Ctrl+K, Ctrl+U
Uncomment selection
Ctrl+K, Ctrl+D
Format document
Ctrl+M, Ctrl+M
Open/close current fold
Ctrl+M, Ctrl+O
Fold all methods
Ctrl+M, Ctrl+L
Toggle all folds
Ctrl+K, Ctrl+K
Toggle bookmark on/off
Ctrl+K, Ctrl+N
Jump to next bookmark
Ctrl-C (with nothing selected)
Copy whole line
Ctrl-X or Ctrl-L (with nothing selected)
Cut whole line
Ctrl+]
Bounce cursor between matching parentheses/brackets/braces
Ctrl+Enter
Open line above line cursor is on
Ctrl+Shift+Enter
Open line below line cursor is on
Ctrl+K, Ctrl+X
Insert snippet (or just type in the snippet name and hit TAB, TAB)
Ctrl+K, Ctrl+S
Surround selected lines with snippet
Ctrl+Shift+B
Build solution
Alt+B, R
Rebuild solution
F9
Toggle breakpoint
Ctrl+Shift+F9
Delete all breakpoints
F5
Start debugging
Shift+F5
Stop debugging
F10
Step over
F11
Step into
Shift+F11
Step out
Ctrl+F5
Start without debugging

注释
Ctrl+K, Ctrl+C
Comment out selection
Ctrl+K, Ctrl+U
Uncomment selection
Ctrl+K, Ctrl+D
Format document

便捷插入
Cirl+J

寻找定义
F12

F6: 生成解决方案
Ctrl+F6: 生成当前项目
F7: 查看代码
Shift+F7: 查看窗体设计器
F5: 启动调试
Ctrl+F5: 开始执行(不调试)
Shift+F5: 停止调试
Ctrl+Shift+F5: 重启调试
F9: 切换断点
Ctrl+F9: 启用/停止断点
Ctrl+Shift+F9: 删除全部断点
F10: 逐过程
Ctrl+F10: 运行到光标处
F11: 逐语句
F12 转到定义

编辑快捷键

Shift+Alt+Enter: 切换全屏编辑
Ctrl+B,T / Ctrl+K,K: 切换书签开关
Ctrl+B,N / Ctrl+K,N: 移动到下一书签
Ctrl+B,P: 移动到上一书签
Ctrl+B,C: 清除全部标签

Ctrl+I: 渐进式搜索
Ctrl+Shift+I: 反向渐进式搜索
Ctrl+F: 查找
Ctrl+Shift+F: 在文件中查找
F3: 查找下一个
Shift+F3: 查找上一个
Ctrl+H: 替换
Ctrl+Shift+H: 在文件中替换
Alt+F12: 查找符号(列出所有查找结果)
Ctrl+Shift+V: 剪贴板循环

Ctrl+左右箭头键: 一次可以移动一个单词
Ctrl+上下箭头键: 滚动代码屏幕,但不移动光标位置。
Ctrl+Shift+L: 删除当前行
Ctrl+M,M: 隐藏或展开当前嵌套的折叠状态
Ctrl+M,L: 将所有过程设置为相同的隐藏或展开状态
Ctrl+M,P: 停止大纲显示
Ctrl+E,S: 查看空白
Ctrl+E,W: 自动换行
Ctrl+G: 转到指定行
Shift+Alt+箭头键: 选择矩形文本
Alt+鼠标左按钮: 选择矩形文本
Ctrl+Shift+U: 全部变为大写
Ctrl+U: 全部变为小写

代码快捷键

Ctrl+J / Ctrl+K,L: 列出成员
Ctrl+Shift+空格键 / Ctrl+K,P: 参数信息
Ctrl+K,I: 快速信息
Ctrl+E,C / Ctrl+K,C: 注释选定内容
Ctrl+E,U / Ctrl+K,U: 取消选定注释内容

Ctrl+K,M: 生成方法存根
Ctrl+K,X: 插入代码段
Ctrl+K,S: 插入外侧代码

F12: 转到所调用过程或变量的定义

窗口快捷键

Ctrl+W,W: 浏览器窗口
Ctrl+W,S: 解决方案管理器
Ctrl+W,C: 类视图
Ctrl+W,E: 错误列表
Ctrl+W,O: 输出视图
Ctrl+W,P: 属性窗口
Ctrl+W,T: 任务列表
Ctrl+W,X: 工具箱
Ctrl+W,B: 书签窗口
Ctrl+W,U: 文档大纲

Ctrl+D,B: 断点窗口
Ctrl+D,I: 即时窗口
Ctrl+Tab: 活动窗体切换
Ctrl+Shift+N: 新建项目
Ctrl+Shift+O: 打开项目
Ctrl+Shift+S: 全部保存
Shift+Alt+C: 新建类
Ctrl+Shift+A: 新建项
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: