DEV Community

Steve Mak
Steve Mak

Posted on • Edited on

Hotkeys for Visual Studio 2019

Hotkeys

Hotkey Description
Alt+Up/Down Move code up/down
Ctrl(K,C)/Ctrl(K,U) Comment/Uncomment line of code
Alt+F12 Peek definition
Ctrl(K,F) Format line of code
Ctrl(K,D) Format document
Ctrl(R,G) Cleanup unused namespace
Ctrl+] Find closing brace
Alt+Shift+Enter Enter/Escape full screen mode
Ctrl(K,S) Select snippet
Ctrl(K,K) Add/Remove bookmark
Ctrl(K,N) Next bookmark
Ctrl(K,P) Previous bookmark
Ctrl(M,O) Collapse all code block
Ctrl+Shift+B Build project

Snippets

Hotkey Description
prop Snippet for Property
ctor Snippet for Constructor
override <> Trigger a list of parent's method

Top comments (0)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook