0% found this document useful (0 votes)
79 views2 pages

Debugger Windows: Microsoft Visual C++ Default Key Bindings

Debug.Locals locals Displays the locals window. Tools.LogCommand WindowOutput log [ ] [ / off] Starts logging all input and output from the Command window. Debug.SetRadix n [hex dec] Sets or returns the numeric base used to display integers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views2 pages

Debugger Windows: Microsoft Visual C++ Default Key Bindings

Debug.Locals locals Displays the locals window. Tools.LogCommand WindowOutput log [ ] [ / off] Starts logging all input and output from the Command window. Debug.SetRadix n [hex dec] Sets or returns the numeric base used to display integers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

2009 Microsoft Corporation. All rights reserved.

Microsoft, IntelliSense, MSDN, Visual C++,


Visual Studio, and the Visual Studio logos are trademarks of the Microsoft group of companies.
Microsoft Visual C++
Default Key Bindings
Debug.Locals locals Displays the Locals window.
Tools.LogCommand
WindowOutput
log [<flename>]
[/off]
Starts logging all input and output
from the Command window. /off
stops logging.
Debug.SetRadix n [hex|dec] Sets or returns the numeric base used
to display integers.
View.WebBrowser nav <url> [/new]
[/ext]
Displays the internal Web browser.
/new will create a new tab. /ext will
open the external browser.
File.NewFile nf [<flename>] Creates a new fle with the specifed
name.
File.OpenFile of <fle>
[/e:<editor>]
Opens an existing fle and allows
specifying of the editor type.
File.OpenProject op [<projname>] Opens an existing project.
Debug.StepOver p Executes next statement without
following execution into method calls.
Debug.StepOut pr Executes the remaining statements of
the currently debugged function.
Debug.Stop-
Debugging
q Stops debugging.
Debug.ListRegisters r Prints the register values.
Debug.RunToCursor rtc Runs the application until it reaches
the statement under the cursor.
Tools.Shell shell [dir:<dir>]
<path> [<args>]
Launches an application with the
specifed arguments.
Debug.StepInto t Executes next statement and follows
execution into method calls.
Debug.Threads threads Displays the Threads window.
Debug.List-
Disassembly
u Lists the disassembly for the next
statements.
Debug.Watch watch Displays the Watch window.
Debug.List-
Processes
| Lists the debugged processes to the
Command window.
Debug.ListThreads ~ Lists the threads in the debugged
process to the Command window.
Debug.ListCallStack
/AllThreads
~*k Prints the call stack for all threads in
the debugged process.
Debugger Windows
Debug.Threads CTRL +ALT +H Displays the Thread List window.
Debug.Immediate CTRL +ALT +I Displays the Immediate window.
Debug.Locals CTRL +ALT +V, L
or ALT +4
Displays the Locals window.
Debug.CallStack CTRL +ALT +C
or ALT +7
Displays the Call Stack window.
Debug.Autos CTRL +ALT +V, A Displays the Autos window.
Debug.Breakpoints CTRL +ALT +B
or ALT +F9
Displays the list of breakpoints.
Debug.Disassembly ALT +8 Shows the disassembly code.
Debug.Modules CTRL +ALT +U Displays the list of modules.
Debug.Processes CTRL +ALT +Z or
CTRL +SHIFT+ALT
+P
Displays the list of debugged
processes.
Debug.Memory1 CTRL +ALT +M, 1 Displays the Memory window.
Debug.Watch CTRL +ALT +W, 1
or ALT +3
Displays the list of watches.
Command Aliases
These commands can be run in the Command window
(CTRL+SHIFT+A) as well as in the Command line (CTRL+/).
Debug.Print ? <expression> Evaluates expression and prints the
result to the Command window.
Debug.QuickWatch ?? <expression> Evaluates expression in the
QuickWatch window.
Debug.Autos autos Displays the Autos window.
Debug.Breakpoints bl Displays the Breakpoints window.
Debug.Toggle-
Breakpoint
bp Toggles breakpoint on current line.
Debug.CallStack callstack Displays the Call Stack window.
Debug.ListMemory d [/Count:<n>]
<address>
Lists the content of the memory at the
specifed address (list only n elements).
Debug.ListMemory
/Format:OneByte
db <address> Lists the content of the memory as an
array of bytes.
Debug.ListMemory
/Format:FourBytes
dd <address> Lists the content of the memory as an
array of longs.
Debug.Disassembly disasm Switches to disassembly mode.
Debug.Evaluate
Statement
eval <statement> Evaluates and displays the given
statement.
Debug.Start g [<address>] Starts debugger. Optionally suspends
execution at the provided address.
Tools.Immediate-
Mode
immed Displays the Immediate window.
Debug.ListCallStack k [Thread:<n>]
[<frame>]
Prints the call stack or sets threads
current frame to the specifed frame.
Notes: These key bindings are only available through the Visual C++
Development Settings. To change these settings, go to Tools | Import
and Export Settings and select Reset All Settings then select Visual
C++ Development Settings. You could also import only the key
bindings by selecting Import Selected Environment Settings instead
of Reset All Settings. To customize the key bindings for these
commands, go to Tools | Options | Environment | Keyboard.
More information on the available command aliases and their
parameters is available on MSDN: http://msdn2.microsoft.com/
en-us/library/c785s0kz.aspx
Editing
Edit.Find CTRL +F Displays the Quick Find tab of the
Find and Replace dialog box.
Edit.Replace CTRL +H Displays the Quick Replace tab of the
Find and Replace dialog box.
Edit.FindInFiles CTRL +SHIFT +F Allows searching of all the fles in a
project or solution for a specifc word
or expression.
Edit.ReplaceInFiles CTRL +SHIFT +H Allows search and replace
functionality over all the fles in a
project or solution.
Edit.Incremental-
Search
CTRL +I Performs a search as you type.
Edit.GoToFind-
Combo
CTRL +D Sets the focus in the Find box on the
toolbar.
Edit.MakeLowercase CTRL +U Lowercases the selected text.
Edit.Make-
Uppercase
CTRL +SHIFT +U Uppercases the selected text.
Edit.View-
WhiteSpace
CTRL +R, CTRL +W
or CTRL +SHIFT +8
Uses glyphs to represent the white
spaces in the editor.
Edit.Comment-
Selection
CTRL +K, CTRL +C Comments selected text.
Edit.Uncomment-
Selection
CTRL +K, CTRL +U Uncomments selected text.
Edit.HideSelection CTRL +M, CTRL +H Creates an outline for the selected
text and collapses it.
Edit.Cycle-
ClipboardRing
CTRL +SHIFT +INS Cycles through the Clipboard ring.
Edit.Copy-
ParameterTip
CTRL +SHIFT +
ALT +C
Copies to clipboard the list of
parameters.
Edit.Paste-
ParameterTip
CTRL +SHIFT +
ALT +P
Pastes in the editor the list of
parameters.
File.CopyFullPath <unassigned> Copies to clipboard the full path of
the selected fle.
Edit.HideSelection CTRL +M,
CTRL +H
Collapses current selection to an
outlining region.
Edit.Toggle-
AllOutlining
CTRL +M, L Toggles all previously collapsed
outlining regions between collapsed
and expanded states.
Edit.Toggle-
OutliningExpansion
CTRL +M, M Toggles the currently selected
collapsed region between the
collapsed and expanded state.
Edit.Format-
Selection
CTRL +K, F or
CTRL +E, F
Formats the current selection
according to the indentation and
code formatting settings specifed on
the Formatting pane under Tools |
Options | Text Editor | C/C++.
Edit.<Direction>
ExtendColumn
SHIFT +ALT +
<ARROW KEY>
Creates a column selection instead of
a stream selection.
File
File.NewProject CTRL +SHIFT +N Creates a new project.
File.OpenFile CTRL +O Opens an existing fle.
File.OpenProject CTRL +SHIFT +O Opens an existing project.
Project.AddNew-
Item
CTRL +SHIFT +A Adds a new item to the project.
Project.Add-
ExistingItem
SHIFT +ALT +A Adds an existing item to the project.
File.Open-
ContainingFolder
<unassigned> Opens the folder containing the fle
in the editor.
Build
Build.BuildSolution F7 or
CTRL +SHIFT +B
Builds the solution.
Build.Rebuild-
Solution
CTRL +ALT +F7 Rebuilds the solution.
Build.Cancel CTRL +BREAK Cancels the build process.
IntelliSense
Edit.CompleteWord CTRL +SPACEBAR
or ALT +RIGHT
ARROW
Completes the current word or shows
the IntelliSense completion list.
Edit.ParameterInfo CTRL +SHIFT +
SPACEBAR
Displays the name, return value, and
parameters of the function call.
Edit.ListMembers CTRL +J or
CTRL +ALT +T
Shows only members in the
IntelliSense completion list.
Edit.QuickInfo CTRL +K, CTRL +I Displays the complete declaration of
the identifer under cursor.
Bookmarks
Edit.Toggle-
Bookmark
CTRL +K, CTRL +K
or CTRL +F2
Toggles a bookmark on the
current line.
Edit.NextBookmark CTRL +K, CTRL +N
or F2
Moves to the next bookmark.
Edit.Previous-
Bookmark
CTRL +K, CTRL +P
or SHIFT +F2
Moves to the previous bookmark.
Edit.NextBook-
markInFolder
CTRL +SHIFT +K,
CTRL +SHIFT +N
Moves to the next bookmark in the
current folder.
Edit.PreviousBook-
markInFolder
CTRL +SHIFT +K,
CTRL +SHIFT +P
Moves to the previous bookmark in
the current folder.
View.Bookmark-
Window
CTRL +K, CTRL +W Shows the Bookmarks window.
Edit.ToggleTaskList-
Shortcut
CTRL +K, CTRL +H Toggles Task List shortcut.
Navigation
Edit.NavigateTo CTRL +COMMA (,) Displays the NavigateTo window,
which allows quick navigation to fles,
types, and members. The dialog is
populated with the symbol at the
cursor location.
Edit.GoToBrace CTRL +] Moves the cursor location to the
matching brace in the source fle.
Edit.FindSymbol ALT +F12 Displays the Find Symbol pane of the
Find and Replace dialog box.
Window.MoveTo-
NavigationBar
CTRL +F8 Sets the focus to the navigation bar.
Edit.GoToNext-
Location
F8 or F4 Navigates to the next fnd result.
Edit.GoToPrev-
Location
SHIFT +F8 or
SHIFT +F4
Navigates back to the previous result.
View.Synchronize-
ClassView
<unassigned> Synchronizes the class view with the
editor.
Edit.GoToDefnition F12 Goes to defnition.
View.CodeDefni-
tionWindow
CTRL +\, D or
CTRL +SHIFT +V
Brings up a window that is constantly
updating with the defnition of the
selected symbols.
Edit.GoTo-
Declaration
CTRL +F12 Goes to declaration.
Edit.FindAll-
References
<unassigned> Searches all references to the current
symbol.
View.Navigate-
Backward
CTRL +HYPHEN(-) Moves to the previously browsed line
of code.
View.Navigate-
Forward
CTRL +SHIFT +
HYPHEN (-)
Moves to the next browsed line of
code.
Tools.GoTo-
CommandLine
CTRL +/ Allows running of commands from
the Find text box. (For a list of available
commands see Command Aliases below.)
Window.ShowEz-
MDIFileList
CTRL +ALT +
DOWN ARROW
Shows a list of fles currently opened
in the editor.
Windows
View.Solution-
Explorer
CTRL +ALT +L Displays the Solution Explorer
window.
View.Properties-
Window
ALT +ENTER Displays the Properties window.
View.Output CTRL +ALT +O or
ALT +2
Displays the Output window.
View.ErrorList CTRL +\, E Displays the Error List window.
View.ZoomIn,
View.ZoomOut
CTRL +SHIFT +
PERIOD (.) and
CTRL +SHIFT +
COMMA (,)
Increases or decreases the view size
of the contents in the editor.
View.CallHierarchy CTRL +ALT +K Displays the Call Hierarchy window,
which lists the callers and callees to a
method.
Window.CloseTool-
Window
SHIFT +ESC Closes the current tool window.
Project.Properties ALT +F7 Displays the Project Properties
dialog box.
View.ClassView CTRL +SHIFT +C Displays the Class View window.
View.Command-
Window
CTRL +ALT +A Displays the Command window.
(For a list of available commands see
Command Aliases section.)
Debugging
Debug.Start F5 Launches the application under the
debugger.
Debug.StartWith-
outDebugging
CTRL +F5 Launches the application without
invoking the debugger.
Debug.Stop-
Debugging
SHIFT +F5 Stops debugging.
Tools.AttachTo-
Process
CTRL +ALT +P Displays the Attach to Process dialog
box.
Debug.DetachAll <unassigned> Detaches from all processes.
Debug.BreakAll CTRL +ALT +
BREAK
Breaks all executing threads.
Debug.BreakAt-
Function
CTRL +B Creates a new function breakpoint.
Debug.Toggle-
Breakpoint
F9 Toggles breakpoint at current line.
Debug.StepInto F11 Executes next statement and follows
execution into method calls.
Debug.StepOver F10 Executes next statement.
Debug.StepOut SHIFT +F11 Executes the remaining statements of
the currently debugged function.
Debug.RunTo-
Cursor
CTRL +F10 Runs the application until it reaches
the statement under the cursor.
Debug.QuickWatch CTRL +ALT +Q or
SHIFT +F9
Displays QuickWatch window.
Debug.SetNext-
Statement
CTRL +SHIFT +F10 Sets the current statement to be the
next executed statement.
Debug.ShowNext-
Statement
ALT +NUM * Shows the next statement.
Debug.Exceptions CTRL +ALT +E Shows the Exceptions dialog box.
Debug.Toggle-
Disassembly
CTRL +F11 Toggles between disassembly and
User Code view.

You might also like