Community
Tutorials In This Section
Visual Studio Keyboard Shortcuts
Introduction
In order to be proficient using Visual Studio it's helpful to know the keyboard shortcuts that you can use to help you complete task quickly. This tutorial will help you to learn the keyboard shortcuts that are available in Visual Studio Community.
Keyboard Shortcuts
Code Editing & Formatting
| Action | Keyboard Shortcut |
|---|
| Quick Actions / Refactoring (Smart Tag) | Ctrl + . (or Alt + Enter) |
| Format Entire Document | Ctrl + K, Ctrl + D |
| Format Selection | Ctrl + K, Ctrl + F |
| Comment Selection | Ctrl + K, Ctrl + C (or Ctrl + /) |
| Uncomment Selection | Ctrl + K, Ctrl + U (or Ctrl + /) |
| Move Line(s) Up / Down | Alt + ↑ / ↓ |
| Duplicate Line | Ctrl + D |
| Delete Line Completely | Ctrl + Shift + L |
| Trigger IntelliSense | Ctrl + Spacebar |
| Rename Symbol (Everywhere) | Ctrl + R, Ctrl + R |