Atajos para CSharp PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Microsoft Visual C# Default Key Bindings

® ®

Editing Edit.Toggle- CTRL + ALT + Toggles between suggestion mode Edit.GoToNext- F8 Moves the caret to the next item,
CompletionMode SPACEBAR (all commit characters except for Location such as a task in the Task List
Edit.CollapseTo- CTRL + M, O Collapses declaration bodies to tab leave entered text as-is, tab window or a search match in the
Definitions provide a high-level view of the chooses a completion item in the Find Results window. Subsequent
types and members in the source list) and completion mode. invocations will move to the next
file. item in the list.
Edit.<Direction> SHIFT + ALT + Creates a box selection instead of a
Edit.HideSelection CTRL + M, CTRL + H Collapses current selection to an ExtendColumn <ARROW KEY> stream selection. Edit.Incremental- CTRL + I Activates incremental search. If
outlining region. Search incremental search is on, but no
input is passed, the previous search
Edit.ToggleAll- CTRL + M, L Toggles all previously collapsed File query is used. If search input has
Outlining outlining regions between been found, next invocation
collapsed and expanded states. File.NewProject CTRL + SHIFT + N Displays the New Project dialog searches for the next occurrence of
box. the input text.
Edit.Toggle- CTRL + M, M Toggles the currently selected
OutliningExpansion collapsed region between the File.OpenProject CTRL + SHIFT + O Displays the Open Project dialog Edit.FindNext, F3 and SHIFT + F3 Searches again for the last search
collapsed and expanded state. box, where existing projects can be Edit.FindPrevious pattern in the direction specified.
added to the solution.
Edit.StopOutlining CTRL + M, P Removes all outlining information Edit.FindNext- CTRL + F3 and Sets the search pattern to the
from the whole document. Project.AddClass SHIFT + ALT + C Displays the Add New Item dialog Selected, CTRL + SHIFT + F3 selected text, then search in the
box and selects Class template as Edit.FindPrevious- direction specified.
Edit.Comment- CTRL + K, C or Inserts // at the beginning of the default. Selected
Selection CTRL + E, C current line or every line of the
current selection. Project.Add- SHIFT + ALT + A Displays the Add Existing Item View.Forward- CTRL + SHIFT + 7 Moves to the next item called in
ExistingItem dialog box, where existing files can BrowseContext code in the current file. Uses the Go
Edit.Uncomment- CTRL + K, U or Removes the // at the beginning of be added to the current project. To Definition navigation stack.
Selection CTRL + E, U the current line or every line of the
current selection. Project.Add- CTRL + SHIFT + A Displays the Add New Item dialog View.PopBrowse- CTRL + SHIFT + 8 Moves to the previous item called in
NewItem box, where a new file can be added Context code in the current file. Uses the Go
Edit.Format- CTRL + K, D or Formats the current document to the current project. To Definition navigation stack.
Document CTRL + E, D according to the indentation and
code formatting settings specified Window.ShowEz- CTRL + ALT + Displays a pop-up listing of all open View.Navigate- CTRL + HYPHEN (-) Moves to the previously browsed
on the Formatting pane under MDIFileList DOWN ARROW documents. Backward line of code.
Tools | Options | Text Editor | C#.
View.Navigate- CTRL + SHIFT + Moves to the next browsed line of
Edit.Format- CTRL + K, F or Formats the current selection Forward HYPHEN (-) code.
Selection CTRL + E, F according to the indentation and IntelliSense
code formatting settings specified Edit.FindInFiles CTRL + SHIFT + F Displays the Find in Files tab of the
Edit.CompleteWord CTRL + SPACEBAR Completes the current word in the Find and Replace dialog box.
on the Formatting pane under
or CTRL + K, W completion list.
Tools | Options | Text Editor | C#.
Edit.FindSymbol ALT + F12 Displays the Find Symbol pane of
Edit.ListMembers CTRL + J or Invokes the IntelliSense® the Find and Replace dialog box.
Edit.InsertSnippet CTRL + K, X Displays the Code Snippet Picker.
CTRL + K, L completion list.
The selected code snippet will be
inserted at the caret position. View.ViewCode F7 Displays the selected item in Code
Edit.QuickInfo CTRL + K, I Displays the complete declaration view of the editor.
for the specified identifier in your
Edit.SurroundWith CTRL + K, S Displays the Code Snippet Picker.
code in a Quick Info tooltip. View.ViewDesigner, SHIFT + F7 Switches between Design and
The selected code snippet will be
wrapped around the selected text. View.ViewMarkup Source views for the current
Edit.ParameterInfo CTRL + SHIFT + Displays the name, number, and document
SPACEBAR or type of parameters required for the
Edit.InvokeSnippet- TAB Inserts the expanded code snippet
CTRL K, P specified method. Window.MoveTo- CTRL + F2 Moves focus to the drop-down bar
FromShortcut from the shortcut name.
NavigationBar located at the top of the editor
Make Completion CTRL Causes a visible completion list to when the editor is in Code view or
Edit.Cycle- CTRL + SHIFT + V Pastes text from the Clipboard ring
List Transparent become transparent. Server Code view.
ClipboardRing to the caret location in the file.
Subsequent use of the shortcut key
iterates through the items in the Edit.Find CTRL + F Displays the Find Quick tab of the
Clipboard ring. Navigation Find and Replace dialog box.

Edit.Replace CTRL + H Displays the replace options in the Edit.NavigateTo CTRL + COMMA (,) Displays the NavigateTo window, Edit.GoTo CTRL + G Displays the Go to Line dialog box.
Quick Replace tab of the Find and which allows quick navigation to
files, types, and members. The word Edit.GoToFind- CTRL + / Moves focus to the Find/Command
Replace dialog box.
at the caret seeds the search. Combo box on the Standard toolbar.
Edit.ReplaceInFiles CTRL + SHIFT + H Displays the replace options on the
Edit.FindAll- SHIFT + F12 or Displays a list of all references for EditorContext- CTRL + K, T Brings focus to the Call Hierarchy
Replace in Files tab of the Find
References CTRL + K, R the symbol selected. Menus.Code- window using the member at the
and Replace dialog box.
Window.ViewCall- caret as a top-level node.
View.Show- CTRL + PERIOD (.) Displays the available options on Edit.GoToBrace CTRL + ] Moves the caret location to the Hierarchy
SmartTag or SHIFT + ALT + the Smart Tag menu. matching brace in the source file.
Edit.NextHighlight- CTRL + SHIFT + Moves the caret to the next or
F10
Edit.GoToDefinition F12 Navigates to the declaration for the edReference, DOWN ARROW previous highlighted identifier
selected symbol in code. Edit.PreviousHigh- and CTRL + SHIFT matching the current one.
lightedReference + UP ARROW

VS KB Brochure C#_Letter.indd 2 7/2/10 3:53 PM


Window Debugging Refactoring
View.ClassView CTRL + W, C Displays the Class View window. Debug.Autos CTRL+D, A Displays the Autos window, which CodeRush Xpress is a free plug-in from Developer Express
displays variables used in the current line Inc., in partnership with Microsoft. CodeRush Xpress
View.Code- CTRL + W, D Displays the Code Definition supports more than 50 refactoring features. See www.
DefinitionWindow window. of code and the preceding line of code.
devexpress.com/Products/Visual_Studio_Add-in/
View.ErrorList CTRL + W, E Displays the Error List window. Debug.CallStack CTRL+D, C Displays the Call Stack window, CodeRushX/ for more information.
which displays a list of all active
View.ObjectBrowser CTRL + W, J Displays the Object Browser. methods or stack frames for the Refactor.- CTRL + R, E Displays the Encapsulate Field
current thread of execution. EncapsulateField dialog box, which allows creation
View.Output CTRL + W, O Displays the Output window, where of a property from an existing field
status messages can be viewed at Debug.Immediate CTRL+D, I Displays the Immediate window, and updates all references to use
run time. where expressions can be evaluated. the new property.
View.Properties- CTRL + W, P Displays the Properties window, Debug.Locals CTRL+D, L Displays the Locals window, which Refactor.Extract- CTRL + R, I Displays the Extract Interface
Window which lists the design-time displays the local variables and their Interface dialog box, which allows creation
properties and events for the values for each method in the of a new interface with members
currently selected item. current stack frame. derived from an existing class,
struct, or interface.
View.Solution- CTRL + W, S Displays Solution Explorer, which
Debug.QuickWatch CTRL+D, Q Displays the QuickWatch dialog
Explorer lists the projects and files in the Refactor.Extract- CTRL + R, M Displays the Extract Method dialog
box that has the current value of
current solution. Method box, which allows creation of a new
the selected expression.
method from the selected code.
View.TaskList CTRL + W, T Displays the Task List window,
which displays custom tasks, Debug.Start F5 Launches the application under the
Refactor.Remove- CTRL + R, V Displays the Remove Parameters
comments, shortcuts, warnings, and debugger based on the settings from
Parameters dialog box, which allows removal of
error messages. the startup project. When in Break
parameters from methods, indexers,
mode, invoking this command will run
or delegates by changing the
View.Toolbox CTRL + W, X Displays the Toolbox, which the application until the next breakpoint.
declaration at any locations where
contains controls that can be
Debug.Start- CTRL+F5 Launches the application without the member is called.
included or used with your code.
WithoutDebugging invoking the debugger. Refactor.Rename CTRL + R, R or F2 Displays the Rename dialog
View.ServerExplorer CTRL + W, L Displays Server Explorer, which lets
box, which allows renaming all
you view and manipulate database Debug.StepInto F11 Executes code one statement at a
references for an identifier.
servers, event logs, message queues, time, following execution into
Web services, and other operating method calls. Refactor.Reorder- CTRL + R, O Displays the Reorder Parameters
system services. Parameters dialog box, which allows changes
Debug.Step- SHIFT+ALT+F11 Prompts to select which sub to the order of the parameters for
Window.CloseTool- SHIFT + ESC Closes the current tool window. IntoSpecific expression to step into, regardless methods, indexers, and delegates.
Window of the tools options setting for
skipping properties and operators. Refactor! CTRL + Invokes available Developer Express
Data.ShowData- SHIFT + ALT + D Displays the Data Sources window.
BACKQUOTE (`) Inc. refactorings when it is installed.
Sources Debug.StepOut SHIFT+F11 Executes the remaining lines of a
Window.Close- CTRL + F4 Closes the current tab. method in which the current
execution point is located.
DocumentWindow Build
Window.NextDocu- CTRL + TAB Displays the IDE Navigator, with Debug.StepOver F10 Executes the next line of code, but Build.BuildSolution F6 or Builds all the projects in
mentWindowNav the first document window selected. does not follow execution through CTRL+SHIFT+B the solution.
any method calls.
View.CallHierarchy CTRL + W, K Displays the Call Hierarchy Build.BuildSelection SHIFT+F6 Builds the selected project
window, which lists callers and Debug.Stop- SHIFT+F5 Stops running the current and its dependencies.
callees for a given member. Debugging application under the debugger.
View.ZoomIn, CTRL + SHIFT + Increases (>) or decreases (<) the Debug.Toggle- F9 Sets or removes a breakpoint at the Note: You can choose to use these key bindings from the Visual
View.ZoomOut PERIOD (.) and size of contents in the editor. Breakpoint current line.
CTRL + SHIFT + C# Development Settings. To change these settings, go to Tools
COMMA (,) Debug.Watch CTRL+D, W Displays the Watch window, which | Import and Export Settings... and select Reset All Settings.
displays the values of selected Then select Visual C# Development Settings. You could also
variables or watch expressions.
import only the key bindings by selecting Import Selected
Debug.Enable- CTRL+F9 Toggles the breakpoint between Environment Settings instead of Reset All Settings. To
Breakpoint disabled and enabled. customize individual key bindings, go to Tools | Options |
Make Datatip [CTRL] Causes a visible datatip to become Environment | Keyboard.
Transparent transparent.

Test.RunTestsIn- CTRL+R, T Runs the unit test containing


CurrentContext the caret.

Test.RunAllTests- CTRL+R, A Runs all of the unit tests in © 2009 Microsoft Corporation. All rights reserved. Microsoft,
InSolution the solution. IntelliSense, Visual C#, Visual Studio, and the Visual Studio
logos are trademarks of the Microsoft group of companies.
All other trademarks are the property of their
respective owners.

VS KB Brochure C#_Letter.indd 1 7/2/10 3:54 PM

You might also like