Skip to main content

Keyboard Shortcuts

Master C# Dev Tools with these keyboard shortcuts.

General Shortcuts

ShortcutDescription
Alt+WOpen Extension Walkthroughs
Alt+POpen Advanced Search dialog
Shift+Alt+LReveal current file in Solution Explorer

Solution Explorer Shortcuts

These shortcuts are active when the Solution Explorer is focused:

ShortcutDescription
Shift+F2Quick Add (add new file/item)
F2Rename selected item
DeleteDelete selected item
Ctrl+CCopy selected item
Ctrl+XCut selected item
Ctrl+VPaste item

Debugging Shortcuts

ShortcutDescription
F5Debug Startup Project
Ctrl+F5Run Startup Project without debugging
Shift+Ctrl+F5Select Startup Project

Bookmark Shortcuts

ShortcutDescription
Alt+Shift+DownToggle bookmark at current line
Alt+Shift+RightGo to next bookmark (globally)
Alt+Shift+LeftGo to previous bookmark (globally)
Alt+Shift+UpShow bookmark and breakpoint quick-pick

Editor Shortcuts

ShortcutCommandDescription
Ctrl+.Quick ActionsAccess refactoring options
F12Go to DefinitionNavigate to symbol definition
Alt+F12Peek DefinitionView definition inline

Test Explorer Shortcuts

These shortcuts are available when working with the Test Explorer:

ShortcutDescription
Ctrl+R, TRun All Tests
Ctrl+R, Ctrl+TRun Failed Tests
Ctrl+R, CRun Tests in Current Context

Customizing Shortcuts

You can customize these shortcuts:

  1. Open VS Code settings (Ctrl+,)
  2. Search for "keyboard shortcuts"
  3. Click on "Keyboard Shortcuts" or press Ctrl+K Ctrl+S
  4. Search for "csharp-dev-tools" to see all available commands
  5. Click on any command to change its shortcut