Visual Studio 2010快捷键总结

1. Manage Visual Studio
Ctrl+S 保存文件
Ctrl+Shift+S 保存所有文件
Ctrl+Shift+N 创建新工程
Ctrl+O 打开文件
Ctrl+Shift+O 打开工程
Ctrl+Shift+A 向工程里添加
Esc 关闭对话框
Ctrl+P 打印
Shift+Alt+Enter 不知道
Ctrl+F4 关闭当前tab
Ctrl+F6/Ctrl+Shift+F6 向前/向后窗口
Ctrl+Tab, then Arrow keys 不知道

▲ up

minus2. 标签
For keystrokes with two keys such as Ctrl+k+k, keep holding the Ctrl key until releasing the last key.
Ctrl+K+K Toogle bookmark
Ctrl+K+N Goto next bookmark
Ctrl+K+P Goto previous bookmark
Ctrl+Shift+K+N Goto next bookmark in folder
Ctrl+Shift+K+P Goto previous bookmark in folder
Ctrl+K+W Put focus on bookmark window
Esc Leave bookmark window and focus on editor
Ctrl+K+H Toggle code shortcut at current line*
Ctrl+K+L Clear all bookmarks
Ctrl+\+T Show Task List (including code shortcuts)
*if somebody figures out additional shortut keys on how to use code shortcuts, please edit this page and add.

▲ up

minus3. 代码编辑
minusFind, Replace, and Goto
Ctrl+F 查找
F3/Shift+F3 查找前一个或者后一个
Ctrl+H 显示替换键
Shift+F12 查找到所有引用
Ctrl+Shift+F 查找文件
Alt+F3s Stop current find in files operation
Ctrl+F3/Ctrl+Shift+F3 Find next / find previous in selected text
Alt+F12 查找symbol
Ctrl+D Put cursor in find/command box of the toolbar. Use ctrl+/ in Visual C#
Ctrl+I/Ctrl+Shift+I Incremental search / reverse incremental search
Shift+Alt+F12 Quick find symbol
Ctrl+, Display Navigate-To dialog box
Ctrl+G 到某行
Ctrl+] 到匹配的括号处
Shift+Ctrl+Arrow down Jump to next occurrence of highlighted symbol
Shift+Ctrl+Arrow up Jump to previous occurrence of highlighted symbol
minusUndo, Redo, Copy, Paste
Ctrl+x, Ctrl+c, Ctrl+V 剪切,复制,粘贴
Ctrl+Shift+V Pastes an item from the Clipboard ring
Ctrl+Z 取消
Ctrl+Y 返回操作
minusSelect Text
Shift+Arrow Keys Extend selection one character/one line
Ctrl+Shift+End/Ctrl+Shift+Home Extend selection to end / to beginning of document
Ctrl+Shift+] Extend selection to nexst brace
Shift+End/Shift+Home Extend selection to end / to beginning of line
Shift+Page Down/Shift+Page Up Extends selection down one page / up one page
Ctrl+W 选中当前字
Esc 取消选择
Ctrl+Shift+Page Down/Page Up 选中当前片
Ctrl+Shift+Arrow Right/Arrow Left Extend selection one word to the right / one word to the left
Ctrl+A 全选

▲ up

minus4. Coding
minusCollapse Items
Ctrl+M+M Collapse / un-collapse current preset area (e.g. method)
Ctrl+M+H Collpase / hide current selection
Ctrl+M+O Collapse declaration bodies
Ctrl+M+A Collapse all
Ctrl+M+X Uncollapse all
Ctrl+mctrl+T Collapse Html tag
minusEdit Code
Ctrl+L Delete current line or selection of lines to and add to clipboard
Ctrl+Shift+L Delete current line or selection of lines
Ctrl+Delete Delete word to right of cursor
Ctrl+Backspace Delete word to left of cursor
Ctrl+Enter Enter blank line above cursor
Ctrl+Shift+Enter Enter blank line below cursor
Ctrl+Shift+U Make uppercase
Ctrl+U Make lowercase (reverse upercase)
Ctrl+K+C Comment selected text
Ctrl+K+U Uncomment selected text
Ctrl+K+\ Remove white space and tabs in selection or around current cursor position
Ctrl+K+D Format document to code formatting settings
Ctrl+K+F Format selection to code formatting settings
Ctrl+Shift+Space Display parameter required for selected method
Ctrl+Shift+8 Visualize whitespace (or press Ctrl+r, then Ctrl+w)
Ctrl+K+D Format document to code formatting settings
Ctrl+K+F Format selection to code formatting settings
Ctrl+Shift+T Transpose word to right of cursor; makes b=a out of a=b if cursor was in front of a
Ctrl+T Transpose character left and right of cursor; cursor between ab would make ba
Shift+Alt+T Transpose line: Move line below cursor up and current line down.
minusIntelliSense and Code Helper
Ctrl+Space Autocomplete word from completion list (or alt+right arrow)
Ctrl+Shift+Space 显示参数信息
Ctrl+F12 Display symbol definition
F12 Display symbol declaration
Ctrl+J Open IntelliSense completion list

▲ up

minus5. Build and Debug
F6 Build solution (or Ctrl+shift+b)
Ctrl+Alt+F7 重新编译
Ctrl+Break 取消编译
Ctrl+\+E 显示错误列表
F9 Toggle breakpoint
Ctrl+B 插入断点
F5 开始调试
F11 单步调试
F10 Debug / step over
Shift+F11 Debug / step out
Ctrl+F10 Debug / run to cursor
Ctrl+Alt+Q Show Quickwatch window
Ctrl+Shift+F10 Set current statement to be the next executed
Alt+* (on numeric keyboard) 显示下一个断点
Ctrl+Alt+E 显示异常窗口
Ctrl+F11 Toggle between disassembly and user code view
Shift+F5 停止编译
Ctrl+F5 Bypass debugger
Ctrl+Alt+P 显示附加到的进程窗口
Ctrl+Alt+break 暂停所有执行线程

▲ up

minus6. Tool Windows
Ctrl+/ Put cursor in the find/command box in toolbar
Ctrl+K+B Open code snippet manager window
Alt+F11 Open macro IDE window
Ctrl+K+W Open bookmark window
Ctrl+Alt+K Open call hierarchy window
Ctrl+Shift+C Open class view window
Ctrl+Alt+A Open Command window
Ctrl+Shift+O Open Output window
Ctrl+Shift+E Open Resource view window
Ctrl+Alt+S Open Server explorer window
Ctrl+Shift+L Open Solution explorer window
Shift+Esc Close Find & Replace Window
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值