0% found this document useful (0 votes)
3 views

keyboard-shortcuts

The document provides a comprehensive list of keyboard shortcuts for Visual Studio, categorized into sections such as navigation, code editing, debugging, search and replace, refactoring, and unit testing. Each section includes specific commands along with their corresponding shortcut keys to enhance productivity while using the software. Additionally, it covers file management and Git-related shortcuts for version control tasks.

Uploaded by

kuzhanthaivel272
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)
3 views

keyboard-shortcuts

The document provides a comprehensive list of keyboard shortcuts for Visual Studio, categorized into sections such as navigation, code editing, debugging, search and replace, refactoring, and unit testing. Each section includes specific commands along with their corresponding shortcut keys to enhance productivity while using the software. Additionally, it covers file management and Git-related shortcuts for version control tasks.

Uploaded by

kuzhanthaivel272
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/ 1

Navigation

Visual Studio
Ctrl + Shift + B Build solution
Ctrl + Q or Ctrl + Shift + P Feature search Ctrl + Shift + A Add new item
Ctrl + T Code search Shift + Alt + A Add existing item
Ctrl + G Go to line Shift + F2 Quick add item
Keyboard shortcuts F8 / Shift + F8 Go to next / prev error Alt + Enter Properties
F12 Go to definition
Alt + F12 Peek definition File management
Code editing Ctrl + F12 Go to implementation Ctrl + N New file
Ctrl+ Space Complete word Shift + F12 Find all references Ctrl + O Open file
Ctrl + Shift + Space Show signature help Alt + Home Go to base class Ctrl + Shift + S, Save all
Alt + ↑ / ↓ Move line up / down Ctrl + - / Ctrl + Shift - Navigate backward / forward Ctrl + Alt + PgUp / PgDn Go to document on left / right
Ctrl + D Duplicate line Ctrl + Shift + backspace Go to last edit location Ctrl + F4 Close tab
Ctrl + Shift + L Delete line Ctrl + Shift + ↑ / ↓ Go to next / prev reference Ctrl + K + Z Restore closed tabs
Ctrl + Enter Insert line below Ctrl + K + K Toggle bookmark Ctrl + [ + S Reveal active file in Explorer
Ctrl + Shift + Enter Insert line above Ctrl + K + N/P Go to next / prev bookmark Ctrl + TAB Cycle through tabs
Ctrl + ↑ / ↓ Scroll line up / down Ctrl + K + L Clear all bookmarks F7 / Shift + F7 Toggle designer and code view
Ctrl + PgUp / PgDn Scroll page up / down F4 Properties
Shift + mouse wheel Scroll page horizontally Debugging
Ctrl + / Toggle line comment F5 Start/continue debugging Windows and display
Ctrl + Shift + / Toggle block comment Shift + F5 Stop debugging Shift + Alt + Enter Toggle full screen
Ctrl + K + D Format document Ctrl + F5 Start without debugging Ctrl + dblclick on window Toggle last dock/float location
Ctrl + K + F Format selection F9 Toggle breakpoint Ctrl + Alt + 1-9 Switch saved window layout
Alt + / Ask Copilot (inline chat) Ctrl + Shift + F9 Clear all breakpoints Shift + ESC Close active tool window
Ctrl + E + W Toggle word wrap F10 Step over Ctrl + Alt + L Activate Solution Explorer
Ctrl + R + W Toggle view whitespace F11 Step into Ctrl + \ + C Activate GitHub Copilot Chat
Shift + Alt + L + S Sort lines Shift + F11 Step out Ctrl + \ + E Activate Error List
Shift + Alt + L + J Join lines Ctrl + Alt + P Attach to process… Ctrl + Alt + O Activate Output window
Shift + Alt + P Reattach to process ESC Set focus on editor
Search and replace Alt + F2 Launch profiler
Ctrl + F Find Shift + Alt + F2 Relaunch profiler Git
Ctrl + H Replace Alt + G + C Git Changes window
Ctrl + Shift + F Find in files Multi caret and selection Alt + G + M Git Repository window
Ctrl + Shift + H Replace in files Ctrl + Alt + mouse click Insert caret Ctrl + Alt + F3 Branch picker
F8 / Shift F8 Go to next / previous error Shift + Alt + . Insert next matching caret Ctrl + Alt + F4 Repository picker
Shift + Alt + ; Insert all matching carets Ctrl + E + C Git actions menu
Refactoring Shift + Alt + , Remove last caret Ctrl + Enter Commit
Ctrl + . or Alt + Enter Show quick actions Shift + Alt + / Move last caret down
Ctrl + R + M Extract method Shift +Alt + ↑ / ↓ Column (box) selection Unit testing
Ctrl + R + I Extract interface Alt + drag mouse Column (box) selection Ctrl + E + T Test Explorer
Ctrl + R + R Rename Shift + Alt = / - Expand / collapse selection Ctrl + R + A Run all tests
Ctrl + R + G Remove and sort usings Ctrl + R + L Repeat last run
Ctrl + K + E Code cleanup Projects and solutions Ctrl + R + U Run until failure
Ctrl + K + S Surround with (if, try, etc.) Ctrl + Shift + N New project Ctrl + R + F Run failed tests
Shift + Alt + L + S Sort lines Ctrl + Shift + O Open project Ctrl + R + N Run not run tests
Shift + Alt + L + J Join lines Ctrl + B Build selection Ctrl + R + Del Clear all results

You might also like