Visual Studio 2010 Shortcuts

来源:互联网 发布:php 中文字符串截取 编辑:程序博客网 时间:2024/05/21 13:42

fromhttp://www.shortcutworld.com/en/win/Visual-Studio_2010.html

Table of Contents:

  1. Manage Visual Studio
  2. Bookmarks
  3. Code Editor
  4. Coding
  5. Build and Debug
  6. Tool Windows
minusplus1. Manage Visual StudioCtrl+sSave current fileCtrl+Shift+sSave all filesCtrl+Shift+nCreate new projectCtrl+oOpen fileCtrl+Shift+oOpen projectCtrl+Shift+aAdd item to projectEscClose menu or dialogCtrl+pPrintShift+Alt+EnterToggle full screen modeCtrl+f4Close current tabCtrl+f6/Ctrl+Shift+f6Go to next / go to previous windowCtrl+Tab, thenArrow keysPress and hold Ctrl+Tab, then usingarrow keys gives a small task manager with all open files and views

▲ up

minusplus2. BookmarksFor keystrokes with two keys such as Ctrl+k+k, keep holding theCtrl 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

minusplus3. Code Editor
minusplusFind, Replace, and GotoCtrl+fFind and replace dialog boxf3/Shift+f3Find next / find previousCtrl+hDisplay Replace options on the quick tabShift+f12Find all references for selected symbolCtrl+Shift+fFind in filesAlt+F3, sStop current find in files operationCtrl+F3/Ctrl+Shift+f3Find next / find previous in selected textAlt+F12Find 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+gGoto line numberCtrl+]Go to matching brace in source file
minusplusUndo, Redo, Copy, PasteCtrl+x, Ctrl+c, Ctrl+vCut, copy, pasteCtrl+Shift+vPastes an item from the Clipboard ringCtrl+zUndoCtrl+yRedo (or Shift+Alt+Backspace, orCtrl+Shift+Z)
minusplusSelect 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+wSelect current wordEscCancel SelectionCtrl+Shift+Page Down/Page UpMoves cursor and extend selection to the last line / first line in view.Ctrl+Shift+Arrow right/arrow leftExtend selection one word to the right / one word to the leftCtrl+aSelect All

▲ up

minusplus4. Coding
minusplusCollapse 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+m, ctrl+tCollapse Html tag
minusplusEdit 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, thenCtrl+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.
minusplusIntelliSense and Code HelperCtrl+SpaceAutocomplete word from completion list (or alt+right arrow)Ctrl+Shift+SpaceShow parameter infoCtrl+f12Display symbol definitionf12Display symbol declarationCtrl+jOpen IntelliSense completion list

▲ up

minusplus5. Build and Debugf7Build solution (or Ctrl+shift+b)Ctrl+Alt+f7Rebuild solutionCtrl+breakCancel build processCtrl+\+eShow error listf9Toggle breakpointCtrl+bInsert new function breakpointf5Start debuggingf11Debug / step intof10Debug / 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)Show nexst statementCtrl+Alt+eShow Exception dialog boxCtrl+f11Toggle between disassembly and user code viewShift+f5Stop DebuggingCtrl+f5Bypass debuggerCtrl+Alt+pShow attach to process windowCtrl+Alt+breakBreak all executing threads

▲ up

minusplus6. 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
原创粉丝点击