Visual Studio 2010快捷键总结

来源:互联网 发布:wox python math 编辑:程序博客网 时间:2024/06/04 17:41
1. Manage Visual StudioCtrl+S保存文件Ctrl+Shift+S保存所有文件Ctrl+Shift+N创建新工程Ctrl+O打开文件Ctrl+Shift+O打开工程Ctrl+Shift+A向工程里添加Esc关闭对话框Ctrl+P打印Shift+Alt+Enter不知道Ctrl+F4关闭当前tabCtrl+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+KToogle bookmarkCtrl+K+NGoto next bookmarkCtrl+K+PGoto previous bookmarkCtrl+Shift+K+NGoto next bookmark in folderCtrl+Shift+K+PGoto previous bookmark in folderCtrl+K+WPut focus on bookmark windowEscLeave bookmark window and focus on editorCtrl+K+HToggle code shortcut at current line*Ctrl+K+LClear all bookmarksCtrl+\+TShow 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 GotoCtrl+F查找F3/Shift+F3查找前一个或者后一个Ctrl+H显示替换键Shift+F12查找到所有引用Ctrl+Shift+F查找文件Alt+F3sStop current find in files operationCtrl+F3/Ctrl+Shift+F3Find next / find previous in selected textAlt+F12查找symbolCtrl+DPut cursor in find/command box of the toolbar. Use ctrl+/ in Visual C#Ctrl+I/Ctrl+Shift+IIncremental search / reverse incremental searchShift+Alt+F12Quick find symbolCtrl+,Display Navigate-To dialog boxCtrl+G到某行Ctrl+]到匹配的括号处Shift+Ctrl+Arrow downJump to next occurrence of highlighted symbolShift+Ctrl+Arrow upJump to previous occurrence of highlighted symbol
minusUndo, Redo, Copy, PasteCtrl+x, Ctrl+c, Ctrl+V剪切,复制,粘贴Ctrl+Shift+VPastes an item from the Clipboard ringCtrl+Z取消Ctrl+Y返回操作
minusSelect TextShift+Arrow KeysExtend selection one character/one lineCtrl+Shift+End/Ctrl+Shift+HomeExtend selection to end / to beginning of documentCtrl+Shift+]Extend selection to nexst braceShift+End/Shift+HomeExtend selection to end / to beginning of lineShift+Page Down/Shift+Page UpExtends selection down one page / up one pageCtrl+W选中当前字Esc取消选择Ctrl+Shift+Page Down/Page Up选中当前片Ctrl+Shift+Arrow Right/Arrow LeftExtend selection one word to the right / one word to the leftCtrl+A全选

▲ up

minus4. Coding
minusCollapse ItemsCtrl+M+MCollapse / un-collapse current preset area (e.g. method)Ctrl+M+HCollpase / hide current selectionCtrl+M+OCollapse declaration bodiesCtrl+M+ACollapse allCtrl+M+XUncollapse allCtrl+mctrl+TCollapse Html tag
minusEdit CodeCtrl+LDelete current line or selection of lines to and add to clipboardCtrl+Shift+LDelete current line or selection of linesCtrl+DeleteDelete word to right of cursorCtrl+BackspaceDelete word to left of cursorCtrl+EnterEnter blank line above cursorCtrl+Shift+EnterEnter blank line below cursorCtrl+Shift+UMake uppercaseCtrl+UMake lowercase (reverse upercase)Ctrl+K+CComment selected textCtrl+K+UUncomment selected textCtrl+K+\Remove white space and tabs in selection or around current cursor positionCtrl+K+DFormat document to code formatting settingsCtrl+K+FFormat selection to code formatting settingsCtrl+Shift+SpaceDisplay parameter required for selected methodCtrl+Shift+8Visualize whitespace (or press Ctrl+r, then Ctrl+w)Ctrl+K+DFormat document to code formatting settingsCtrl+K+FFormat selection to code formatting settingsCtrl+Shift+TTranspose word to right of cursor; makes b=a out of a=b if cursor was in front of aCtrl+TTranspose character left and right of cursor; cursor between ab would make baShift+Alt+TTranspose line: Move line below cursor up and current line down.
minusIntelliSense and Code HelperCtrl+SpaceAutocomplete word from completion list (or alt+right arrow)Ctrl+Shift+Space显示参数信息Ctrl+F12Display symbol definitionF12Display symbol declarationCtrl+JOpen IntelliSense completion list

▲ up

minus5. Build and DebugF6Build solution (or Ctrl+shift+b)Ctrl+Alt+F7重新编译Ctrl+Break取消编译Ctrl+\+E显示错误列表F9Toggle breakpointCtrl+B插入断点F5开始调试F11单步调试F10Debug / step overShift+F11Debug / step outCtrl+F10Debug / run to cursorCtrl+Alt+QShow Quickwatch windowCtrl+Shift+F10Set current statement to be the next executedAlt+* (on numeric keyboard)显示下一个断点Ctrl+Alt+E显示异常窗口Ctrl+F11Toggle between disassembly and user code viewShift+F5停止编译Ctrl+F5Bypass debuggerCtrl+Alt+P显示附加到的进程窗口Ctrl+Alt+break暂停所有执行线程

▲ up

minus6. Tool WindowsCtrl+/Put cursor in the find/command box in toolbarCtrl+K+BOpen code snippet manager windowAlt+F11Open macro IDE windowCtrl+K+WOpen bookmark windowCtrl+Alt+KOpen call hierarchy windowCtrl+Shift+COpen class view windowCtrl+Alt+AOpen Command windowCtrl+Shift+OOpen Output windowCtrl+Shift+EOpen Resource view windowCtrl+Alt+SOpen Server explorer windowCtrl+Shift+LOpen Solution explorer windowShift+EscClose Find & Replace Window
0 0