SharpDevelop Wiki

Keyboard Shortcuts

Modified: 2009/06/14 08:26 by vee21 - Categorized as: Developer

The list of shortcuts is grouped by working areas, primary according to main menu items.

The following main menu items have no shortcuts:
  • Refactoring
  • Format (in designer mode)

(All shortcuts are in alphabethic order: Shift, Ctrl, Ctrl-Shift, Ctrl-Alt, Alt, Alt-Shift)

Note: Descriptions, that contain '???' characters in the MenuItem column, may be incorrect because I never used this feature or my English has gaps. I'll bother to correct these sentences after connecting the #D developers.



Edit

Editor 1: Move Caret, Select Text

These shortcuts work as Windows standard.

ShortCutMenuItemFeature, Description
InsertToggle insert mode
DeleteDelete selected text or single object
Left
Shift-Left
Ctrl-Left
Ctrl-Shift-Left
Set caret one character to the left
Select one character to the left
Set caret one word to the left
Select one word to the left
Right
Shift-Right
Ctrl-Right
Ctrl-Shift-Right
Set caret one character to the right
Select one character to the right
Set caret one word to the right
Select one word to the right
Up
Shift-Up
Ctrl-Up
Set caret one line upwards
Select one line upwards
Scroll one line upwards
Down
Shift-Down
Ctrl-Down
Set caret one line downwards
Select one line downwards
Scroll one line downwards
Home
Shift-Home
Set caret to the start of the line
Select from caret to the start of the line
Ctrl-Home
Ctrl-Shift-Home
Set caret to the start of the text
Select from caret to the start of the text
End
Shift-End
Set caret to the end of the line
Select from caret to the end of the line
Ctrl-End
Ctrl-Shift-End
Set caret to the end of the text
Select from caret to the end of the text
PageUp
Shift-PageUp
Set caret one page upwards
Select from caret one page upwards
PageDown
Shift-PageDown
Set caret one page downwards
Select from caret one page downwards
Goto Top


Edit

Editor 2: Standard Shortcuts

These shortcuts work like Windows standard, partially adapted to developer's requirements. They can be used in editor mode (text) as well as in designer mode (controls).

ShortCutMenuItemFeature, Description
Ctrl-DeleteDelete Word
Ctrl-BackspaceWord Backspace, i.e. delete word backwards
Ctrl-AEdit > Select AllSelect All the text/objects
Ctrl-C
Ctrl-Insert
Edit > CopyCopy the selection to clipboard
Ctrl-V
Shift-Insert
Edit > PasteInsert (paste) from clipboard
Ctrl-X
Shift-Delete
Edit > CutExtract the selected text/object
Ctrl-YEdit > RedoRedo the last change(s)
Ctrl-Z
Alt-Backspace
Edit > UndoUndo the last change(s)
Goto Top


Edit

Editor 3: Additional Shortcuts

These shortcuts make a developer's work easier.

ShortCutMenuItemFeature, Description
EscapeEditor mode
Designer mode
Clear all selections
Go to default property in the property grid
Ctrl-SpaceShow a list containing members of the current object
Ctrl-EnterContextGoto Definition
Alt-InsertTools > Auto code generationAuto code generation: open a dialog where you can select special items
Ctrl-PageUp
Ctrl-PageDown
Toggle mode between editor mode and designer mode
Ctrl-Divide
Ctrl-OemQuestion
Toggle comments related to the selected source code
Ctrl-DDelete current line
Ctrl-Shift-DDelete from caret until end of line
Ctrl-Shift-GEdit > Insert
> Insert new GUID
GUID insert
Ctrl-IEdit > Format > IndentIndent adaptation: The indent of the selected text will be changed in the way it is set in options and needed by code structure.
Ctrl-JCode Templates: Open a dialog to choose a pre-defined code snippet; you can edit them in: Tools > Options > Coding > Code Templates
Ctrl-Shift-LEdit > Folding
> Toggle all folds
Code folding: Switch all foldings
Ctrl-Shift-MEdit > Folding
> Toggle fold
Code folding: Switch folding of the current section; to do so you must set the cursor in the first line of this section
Ctrl-Shift-PEdit > Folding
> Show definitions only
Code folding: Show definitions only
TabIndent selected code
Shift-TabDedent selected code
Goto Top


Edit

File Shortcuts

These shortcuts work similar like Windows standard: [Ctrl] is related to a single file, [Ctrl-Shift] is related to a solution or project.

ShortCutMenuItemFeature, Description
Ctrl-NFile > New > FileNew file: Start to create a new file, either as part of the current project or as single file
Ctrl-Shift-NFile > New > SolutionNew solution: Start to create a new solution
Note: There is no shortcut to add a project to the current solution.
Ctrl-OFile > Open > FileOpen file: Open an existing file
Ctrl-Shift-OFile > Open
> Project/Solution
Open project or solution: Open an existing project or solution
Ctrl-SFile > SaveSave the current file
Ctrl-Shift-SFile > Save allSave all open files if changed
Ctrl-Shift-UFile > Reload fileReload the current file; all changes are rejected
F2Explorer ContextRename file or item
Note: F2 has another meaning in the source code editor; see the "Bookmarks" section.
Ctrl-F4File > Close > FileClose the current file
Ctrl-Shift-F4File > Close > SolutionClose the current solution
Goto Top


Edit

File Menu Shortcuts

These shortcuts work as Windows standard.

ShortCutMenuItemFeature, Description
Ctrl-PFile > PrintPrint the current file.
Note: you can only print source code, but not the image of a form.
Alt-F4File > ExitExit the application
Goto Top


Edit

Views: Internal Tool Windows

The #D editor contains a lot of tool windows (WinForm.FormBorderStyle FixedToolWindow or SizableToolWindow), that are included in the DockPanelSuite and are shown by the following shortcuts. (The description tells, too, on which side of the panel suite a window is shown.)

ShortCutMenuItemFeature, Description
Ctrl-Shift-BView > Boo Interpreter
???
Show the Boo interpreter (lower side)
Ctrl-Shift-CView > ClassesShow all Classes of the solution (right side)
Ctrl-Alt-DView > Server Explorer
???
Show the Server (Database) Explorer, i.e. the data classes of the solution (right side)
Ctrl-Alt-FView > Tools > FilesShow the File Explorer this is an explorer independent of the solution‘s files (left side)
Ctrl-Alt-GView > Tools
??? > Code Coverage
Code-Coverage (lower side)
Ctrl-Alt-KView > ErrorsShow compile Errors and warnings (lower side)
Ctrl-Alt-LView > Project ExplorerShow a tree view containing a solution's Projects and all references and files (left side)
Ctrl-Alt-OView > Output
???
Show the Output window containing messages while compiling (lower side)
??? Is it able to use this window for Console.WriteLine() while running an application?
Ctrl-Alt-XView > ToolsShow the Toolbox containing especially the designer controls (left side)
Note: In the View menu there are two items named Tools: this one and another one with subitems to external tools.
F4View > PropertiesShow the PropertyGrid (right side)
Note: You cannot go directly to the property grid via F4, you must use the mouse.
Goto Top


Edit

Views: External Tools

These shortcuts show additional tool windows of add-ins. They are called both by menu items "View > Tools >" and "Tools".

ShortCutMenuItemFeature, Description
Ctrl-QTools > Quick XML Doc
???
Create a Quick XML documentation
Ctrl-Alt-QView > Tools > Report Explorer
???
Show the Report Explorer
Ctrl-Alt-RTools > Report Generator
???
Call the Report Generator SharpReport
Ctrl-Alt-TView > Tools > Unit Tests
???
Show the Unit Testing list
Goto Top


Edit

Views: Debugger Windows

These shortcuts show the tool windows used while debugging (most of them on the lower side of the panel suite). All of them can be called by menu items "View > Debug >".

ShortCutMenuItemFeature, Description
Ctrl-Alt-C> Callstack
???
Show the Callstack (i.e. stack trace)
Ctrl-Alt-H> Threads
???
Show the Threads (right side)
Ctrl-Alt-P> BreakpointsShow the Breakpoints (right side)
Ctrl-Alt-U> Loaded modules
???
Show the Units / Modules
Ctrl-Alt-V> Local variablesShow the Local Variables
Goto Top


Edit

Project/Solution

These shortcuts concern the building of a solution or project. They are called by menu items "Build".

ShortCutMenuItemFeature, Description
F8> Build SolutionBuild all projects of the solution
Alt-F8> Rebuild SolutionRebuild all projects of the solution
F9> Build (project name)Build activated project
Alt-F9> Rebuild (project name)Rebuild activated project
Goto Top


Edit

Debugger

These shortcuts are used to run with or without debugging. They are called by menu items "Debug".

ShortCutMenuItemFeature, Description
Ctrl-Alt-B> BreakBreak debugging: Try to stop executing and to show the current instruction
F5> RunRun application: If configuration is set to debug, then run with debugger; if it es set to release, then run without debugger.
Note: 1- If a project is set as start project, then F5 will always try to start that project and prebuild referenced assemblies; if you want to start another project, you should sign this project in project explorer and start it via context menu.
2- After breakpoint, you have to press F6 to continue (not F5).
Ctrl-F5> Run without debuggerRun application without debugger
F6> Continue debuggingContinue debugging: Continue to run the application without new stops until the next breakpoint is reached
F7> Toggle breakpointToggle breakpoint: Switch on or off a breakpoint at the current source code line
F10> Step overRun Next Instruction; if this one calls another method, then that method's debugging is stepped over
F11> Step intoRun Next Detailed Instruction; if this one calls another method, then that method's instructions are debugged step by step
Shift-F11> Step outRun application until the current method is finished
Goto Top


Edit

Find/Replace

These shortcuts are used to search and replace specific text in the source code editor. They are called by menu items "Search".

ShortCutMenuItemFeature, Description
Ctrl-E> Incremental SearchBegin to search forward for one or more Characters Incremental until you press any non-character key or no match is found
Ctrl-Shift-E> Reverse
Incremental Search
Begin to search backward for one or more Characters Incremental until you press any non-character key or no match is found
Ctrl-F> FindOpen the extensive Find Dialog window
Ctrl-G> Goto Line NumberOpen a GoTo Dialog window where you can search for line numbers and/or class names
Ctrl-R> ReplaceOpen the extensive Find Dialog window with replace possibilities
F3> Find NextRepeat searching for the text set in FindDialog
Ctrl-F3> Find Next SelectedGo to the Next Occurrence in the search results window
Goto Top


Edit

Bookmarks

These shortcuts are used to set and search specific lines in the source code editor. They are called by menu items "Search".

ShortCutMenuItemFeature, Description
Ctrl-B> Goto Matching BraceIf the caret's position is behind a bracket, you'll move the caret to the matching bracket. This works for '(', ')', '[', ']', '{', '}', but not '<', '>'.
F2> Next BookmarkGo to Next Bookmark
Ctrl-F2> Toggle BookmarkToggle Bookmark: Switch a bookmark at the current line on or off
Alt-F2> Prev BookmarkGo to Previous Bookmark
Goto Top


Edit

Window

These shortcuts affect the main window in the panel suite.

ShortCutMenuItemFeature, Description
Ctrl-TabWindow > Next WindowGo to Next Window in the editor range
Ctrl-Shift-TabWindow > Prev WindowGo to Previous Window in the editor range
Shift-EscToggle Maximizing the source window
Ctrl-PageUp
Ctrl-PageDown
Toggle mode between editor mode and designer mode
Goto Top


Edit

Help

These shortcuts show integrated help of .NET Framework documentation or SharpDevelop Wiki. They are called by menu items "Help". Content, index, terms are shown in a tool window (right side); descriptions are shown in the main window.

???
I don't use these features because I think that the integrated documentation looks confused. I prefer to open it as separate window with the Microsoft Document Explorer application.

ShortCutMenuItemFeature, Description
F1> Context helpShow suitable search results for the current term
Ctrl-F1> Dynamic HelpShow dynamic suitable search results for all current terms
Alt-F1> Help TopicsShow the main page of SharpDevelop Wiki
Alt-Ctrl-F1> ContentsEnable to look for any term
Shift-Alt-F2> Index resultsEnable to look for a specific term
Alt-Ctrl-F2> IndexShow the index of the .NET documentation
Alt-Ctrl-F3> SearchEnable to look for a specific term
Goto Top

ScrewTurn Wiki version 2.0.35. Some of the icons created by FamFamFam.