You are on page 1of 2

Microsoft Visual C++ Default Key Bindings

® ®

Editing File Navigation


Edit.Find CTRL + F Displays the Quick Find tab of the File.NewProject CTRL + SHIFT + N Creates a new project. Edit.NavigateTo CTRL + COMMA (,) Displays the NavigateTo window,
Find and Replace dialog box. which allows quick navigation to
File.OpenFile CTRL + O Opens an existing file. files, types, and members. The
Edit.Replace CTRL + H Displays the Quick Replace tab of dialog is populated with the symbol
the Find and Replace dialog box. File.OpenProject CTRL + SHIFT + O Opens an existing project.
at the cursor location.
Edit.FindInFiles CTRL + SHIFT + F Allows searching of all the files in a Project.AddNew- CTRL + SHIFT + A Adds a new item to the project.
Edit.GoToBrace CTRL + ] Moves the cursor location to the
project or solution for a specific Item
matching brace in the source file.
word or expression.
Project.Add- SHIFT + ALT + A Adds an existing item to the
Edit.FindSymbol ALT + F12 Displays the Find Symbol pane of
Edit.ReplaceInFiles CTRL + SHIFT + H Allows search and replace ExistingItem project.
the Find and Replace dialog box.
functionality over all the files in a
File.Open- <unassigned> Opens the folder containing the file
project or solution. Window.MoveTo- CTRL + F8 Sets the focus to the navigation bar.
ContainingFolder in the editor.
NavigationBar
Edit.Incremental- CTRL + I Performs a search as you type.
Search Build Edit.GoToNext- F8 or F4 Navigates to the next find result.
Location
Edit.GoToFind- CTRL + D Sets the focus in the Find box on Build.BuildSolution F7 or Builds the solution.
Combo the toolbar. CTRL + SHIFT + B Edit.GoToPrev- SHIFT + F8 or Navigates back to the previous
Location SHIFT + F4 result.
Edit.MakeLowercase CTRL + U Lowercases the selected text. Build.Rebuild- CTRL + ALT + F7 Rebuilds the solution.
Solution View.Synchronize- <unassigned> Synchronizes the class view with the
Edit.Make- CTRL + SHIFT + U Uppercases the selected text. ClassView editor.
Uppercase Build.Cancel CTRL + BREAK Cancels the build process.
Edit.GoToDefinition F12 Goes to definition.
Edit.View- CTRL + R, CTRL + W Uses glyphs to represent the white
WhiteSpace or CTRL + SHIFT + 8 spaces in the editor. IntelliSense View.CodeDefini- CTRL + \, D or Brings up a window that is
tionWindow CTRL + SHIFT + V constantly updating with the
Edit.Comment- CTRL + K, CTRL + C Comments selected text. Edit.CompleteWord CTRL + SPACEBAR Completes the current word or definition of the selected symbols.
Selection or ALT + RIGHT shows the IntelliSense® completion
ARROW list. Edit.GoTo- CTRL + F12 Goes to declaration.
Edit.Uncomment- CTRL + K, CTRL + U Uncomments selected text. Declaration
Selection Edit.ParameterInfo CTRL + SHIFT + Displays the name, return value, and
SPACEBAR parameters of the function call. Edit.FindAll- <unassigned> Searches all references to the
Edit.HideSelection CTRL + M, CTRL + H Creates an outline for the selected References current symbol.
text and collapses it. Edit.ListMembers CTRL + J or Shows only members in the
CTRL + ALT + T IntelliSense completion list. View.Navigate- CTRL + HYPHEN (-) Moves to the previously browsed
Edit.Cycle- CTRL + SHIFT + INS Cycles through the Clipboard ring. Backward line of code.
ClipboardRing Edit.QuickInfo CTRL + K, CTRL + I Displays the complete declaration
of the identifier under cursor. View.Navigate- CTRL + SHIFT + Moves to the next browsed line of
Edit.Copy- CTRL + SHIFT + Copies to clipboard the list of Forward HYPHEN (-) code.
ParameterTip ALT + C parameters.
Bookmarks Tools.GoTo- CTRL + / Allows running of commands from
Edit.Paste- CTRL + SHIFT + Pastes in the editor the list of CommandLine the Find text box. (For a list of
ParameterTip ALT + P parameters. Edit.Toggle- CTRL + K, CTRL + K Toggles a bookmark on the available commands see “Command
File.CopyFullPath <unassigned> Copies to clipboard the full path of Bookmark or CTRL + F2 current line. Aliases” below.)
the selected file. Edit.NextBookmark CTRL + K, CTRL + Moves to the next bookmark. Window.ShowEz- CTRL + ALT + Shows a list of files currently
N or F2 MDIFileList DOWN ARROW opened in the editor.
Edit.HideSelection CTRL + M, Collapses current selection to an
CTRL + H outlining region. Edit.Previous- CTRL + K, CTRL + P Moves to the previous bookmark.
Edit.Toggle- CTRL + M, L Toggles all previously collapsed Bookmark or SHIFT + F2 Windows
AllOutlining outlining regions between Edit.NextBook- CTRL + SHIFT + K, Moves to the next bookmark in the View.Solution- CTRL + ALT + L Displays the Solution Explorer
collapsed and expanded states. markInFolder CTRL + SHIFT + N current folder. Explorer window.

Edit.Toggle- CTRL + M, M Toggles the currently selected View.Properties- ALT + ENTER Displays the Properties window.
Edit.Previous- CTRL + SHIFT + K, Moves to the previous bookmark in
OutliningExpansion collapsed region between the Window
BookmarkInFolder CTRL + SHIFT + P the current folder.
collapsed and expanded state.
View.Output CTRL + ALT + O or Displays the Output window.
View.Bookmark- CTRL + K, CTRL + W Shows the Bookmarks window.
Edit.Format- CTRL + K, F or Formats the current selection ALT + 2
Window
Selection CTRL + E, F according to the indentation and
View.ErrorList CTRL + \, E Displays the Error List window.
code formatting settings specified on Edit.ToggleTaskList- CTRL + K, CTRL + H Toggles Task List shortcut.
the Formatting pane under Tools | Shortcut View.ZoomIn, CTRL + SHIFT + Increases or decreases the view
Options | Text Editor | C/C++. View.ZoomOut PERIOD (.) and size of the contents in the editor.
CTRL + SHIFT +
Edit.<Direction> SHIFT + ALT + Creates a column selection instead
COMMA (,)
ExtendColumn <ARROW KEY> of a stream selection.

VS KB Brochure C++_A4.indd 2 7/6/10 9:41 AM


View.CallHierarchy CTRL + ALT + K Displays the Call Hierarchy Debug.CallStack CTRL + ALT + C Displays the Call Stack window. View.WebBrowser nav <url> [/new] Displays the internal Web browser.
window, which lists the callers and or ALT + 7 [/ext] /new will create a new tab. /ext will
callees to a method. open the external browser.
Debug.Autos CTRL + ALT + V, A Displays the Autos window.
Window.CloseTool- SHIFT + ESC Closes the current tool window. File.NewFile nf [<filename>] Creates a new file with the specified
Window Debug.Break- CTRL + ALT + B Displays the list of breakpoints. name.
points or ALT + F9
Project.Properties ALT + F7 Displays the Project Properties File.OpenFile of <file> Opens an existing file and allows
dialog box. Debug.Disassembly ALT + 8 Shows the disassembly code. [/e:<editor>] specifying of the editor type.
View.ClassView CTRL + SHIFT + C Displays the Class View window. Debug.Modules CTRL + ALT + U Displays the list of modules. File.OpenProject op [<projname>] Opens an existing project.
View.Command- CTRL + ALT + A Displays the Command window. Debug.Processes CTRL + ALT + Z or Displays the list of debugged Debug.StepOver p Executes next statement without
Window (For a list of available commands CTRL + SHIFT + processes. following execution into method
see “Command Aliases” section.) ALT + P calls.
Debug.Memory1 CTRL + ALT + M, 1 Displays the Memory window. Debug.StepOut pr Executes the remaining statements
Debugging of the currently debugged function.
Debug.Watch CTRL + ALT + W, 1 Displays the list of watches.
Debug.Start F5 Launches the application under the or ALT + 3 Debug.Stop- q Stops debugging.
debugger. Debugging
Debug.StartWith- CTRL + F5 Launches the application without Command Aliases Debug.ListRegisters r Prints the register values.
outDebugging invoking the debugger.
These commands can be run in the Command window
Debug.RunToCursor rtc Runs the application until it reaches
Debug.Stop- SHIFT + F5 Stops debugging. (CTRL+SHIFT+A) as well as in the Command line (CTRL+/).
the statement under the cursor.
Debugging
Debug.Print ? <expression> Evaluates expression and prints the
Tools.Shell shell [dir:<dir>] Launches an application with the
Tools.AttachTo- CTRL + ALT + P Displays the Attach to Process result to the Command window.
<path> [<args>] specified arguments.
Process dialog box.
Debug.Quick- ?? <expression> Evaluates expression in the
Debug.StepInto t Executes next statement and follows
Debug.DetachAll <unassigned> Detaches from all processes. Watch QuickWatch window.
execution into method calls.
Debug.BreakAll CTRL + ALT + Breaks all executing threads. Debug.Autos autos Displays the Autos window.
Debug.Threads threads Displays the Threads window.
BREAK
Debug.Breakpoints bl Displays the Breakpoints window.
Debug.List- u Lists the disassembly for the next
Debug.BreakAt- CTRL + B Creates a new function breakpoint. Disassembly statements.
Function Debug.Toggle- bp Toggles breakpoint on current line.
Breakpoint
Debug.Watch watch Displays the Watch window.
Debug.Toggle- F9 Toggles breakpoint at current line.
Breakpoint Debug.CallStack callstack Displays the Call Stack window.
Debug.List- | Lists the debugged processes to the
Debug.ListMemory d [/Count:<n>] Lists the content of the memory at the Processes Command window.
Debug.StepInto F11 Executes next statement and follows
execution into method calls. <address> specified address (list only n elements).
Debug.ListThreads ~ Lists the threads in the debugged
Debug.ListMemory db <address> Lists the content of the memory as process to the Command window.
Debug.StepOver F10 Executes next statement.
/Format:OneByte an array of bytes.
Debug.ListCallStack ~*k Prints the call stack for all threads in
Debug.StepOut SHIFT + F11 Executes the remaining statements /AllThreads the debugged process.
of the currently debugged function. Debug.ListMemory dd <address> Lists the content of the memory as
/Format:FourBytes an array of longs.
Debug.RunTo- CTRL + F10 Runs the application until it reaches
Cursor the statement under the cursor. Debug.Disassembly disasm Switches to disassembly mode. Notes: These key bindings are only available through the Visual C++
Debug.Evaluate eval <statement> Evaluates and displays the given
Development Settings. To change these settings, go to Tools | Import
Debug.Quick- CTRL + ALT + Q or Displays QuickWatch window.
Statement statement. and Export Settings and select Reset All Settings then select Visual
Watch SHIFT + F9
C++ Development Settings. You could also import only the key bindings
Debug.SetNext- CTRL + SHIFT + Sets the current statement to be the Debug.Start g [<address>] Starts debugger. Optionally suspends
execution at the provided address. by selecting Import Selected Environment Settings instead of Reset All
Statement F10 next executed statement.
Settings. To customize the key bindings for these commands, go to Tools
Debug.ShowNext- ALT + NUM * Shows the next statement. Tools.Immediate- immed Displays the Immediate window.
Mode | Options | Environment | Keyboard.
Statement
Debug.ListCallStack k [Thread:<n>] Prints the call stack or sets thread’s More information on the available command aliases and their
Debug.Exceptions CTRL + ALT + E Shows the Exceptions dialog box.
[<frame>] current frame to the specified frame. parameters is available on MSDN®: http://msdn2.microsoft.com/
Debug.Toggle- CTRL + F11 Toggles between disassembly and en-us/library/c785s0kz.aspx
Disassembly User Code view. Debug.Locals locals Displays the Locals window.

Tools.LogCommand log [<filename>] Starts logging all input and output


Debugger Windows WindowOutput [/off] from the Command window. /off
stops logging.
Debug.Threads CTRL + ALT + H Displays the Thread List window.
Debug.SetRadix n [hex|dec] Sets or returns the numeric base
© 2009 Microsoft Corporation. All rights reserved. Microsoft, IntelliSense,
Debug.Immediate CTRL + ALT + I Displays the Immediate window. used to display integers.
MSDN, Visual C++, Visual Studio, and the Visual Studio logos are
Debug.Locals CTRL + ALT + V, L Displays the Locals window. trademarks of the Microsoft group of companies.
or ALT + 4

VS KB Brochure C++_A4.indd 1 7/6/10 9:42 AM

You might also like