VS hotkeys

Configure Keyboard Shortcuts

Tools → Options; Environment → Keyboard

DescriptionHotkey

Feature search

Ctrl + Q

Go to declaration / definition

F12

Peek declaration / definition

Alt + F12

Navigate backward / forward

Ctrl + - / Ctrl + Shift + -

Back to beginning

Ctrl + Shift + Backspace

Toggle header code file

Ctrl + K, Ctrl + O

Go to line

Ctrl + G

Search

Ctr + F / Ctrl + Shift + F

Replace

Ctr + H / Ctrl + Shift + H

Code search

Ctrl + Shift + T

Find all references

Shift + F12

Toggle bookmark

Ctrl + K, Ctrl + K

Next bookmark

Ctrl + K, Ctrl + N

Previous bookmark

Ctrl + K, Ctrl + P

Show solution explorer

Ctr + Alt + L

Focus file in solution explorer

Ctrl + [, S

Next document window nav

Ctrl + Tab

Code editing and refactoring

DescriptionHotkey

Auto complete

Tab

Quick actions

Ctrl + .

Format document

Ctrl + K, Ctrl + D

Duplicate line

Ctrl + D

Cut line

Ctrl + X

Delete line (without copying it)

Ctrl + Shift + L

Comment / uncomment

Ctrl + K, Ctrl + C / U

Move line or selection up (down)

Alt + Arrow Up (Arrow Down)

Add line above (below)

Ctrl + Enter / Ctrl + Shift + Enter

Make uppercase

Ctrl + Shift + U

Make lowercase

Ctrl + U

Paste from keyboard buffer ring

Ctrl + Shift + V

Surround with snippet

Ctrl + K, S

Multiply cursors

Alt + Ctrl + mouse click

Vertical selection

Alt + mouse move

Create constructor

ctor

Create for loop body

for, forr, rfor

Create class

class, classi

Refactoring suggestions

Alt + Enter

Extract method

Ctrl + R, M

Rename symbol

Ctrl + R, R

Debugging

DescriptionHotkey

Build

Ctrl + B

Debug

F5

Run without debugging

Ctrl + F5

Stop

Shift + F5, Ctrl + Break

Step over

F10

Step into

F11

Step out

Shift + F11

Attach to process

Ctrl + Alt + P

Call stack

Ctrl + Alt + C

Delete all breakpoints

Ctrl + Shift + F9

Watch 1

Ctrl + Alt + W, 1

Show output explorer

Ctrl + Alt + O

Editor

DescriptionHotkey

Show whitespaces

Ctrl + R, Ctrl + W

Open powershell menu

Ctrl + ~

Zoom in, zoom out

Ctrl + mouse wheel

Collapse to definitions

Ctrl + M, O

Expand / collapse block

Ctr + M, M

Last updated