In this post, we will help you boost your productivity with the help of below listed visual studio keyboard shortcuts.
Topics Covered
Introduction
Visual Studio is a rich, integrated development environment for creating stunning applications for Windows, Android, and iOS, as well as modern web applications and cloud services. The majority of developers are familiar with using Ctrl + Space for IntelliSense in Visual Studio.
However, the visual studio is extremely keyboard friendly, and you have keyboard shortcuts for pretty much any functionality that is exposed via the various menus.
Forget using the file menu for frequently used options. Use keyboard shortcuts and boost your productivity.
Visual Studio Keyboard Shortcuts
Format Document
CTRL + K, CTRL + D: Formats the current document
Comment Code
CTRL + K, CTRL + C: Comments selected text
CTRL + K, CTRL + U: Un comments selected text
Go to Definition
F12: Go to definition of current code element
Enter Full Screen
SHIFT + ALT + ENTER: View Code Editor in Full Screen
Debugging
F5, F10, F11: Start the debugging, Step into & Step Over respectively.
CodeView
F7: Switches from the design view to the code view in the editor.
Change Case
CTRL + U: Changes the selected text to lower case.
CTRL + SHIFT + U: Changes the selected text to UPPER case.
Command Window
CTRL + ALT + A: Displays the Command window, which allows you to type commands that manipulate the
IDE.
Immediate Window
CTL + ALT + I: Displays the Immediate window, where you can evaluate expressions and execute
individual commands.
Window Manipulation
CTRL+ TAB: Cycles through the MDI (Multiple Document Interface) child windows, one window at a time.
Auto Snippets
Another very useful shortcut in visual studio is [Tab] + [Tab] shortcut. That is, pressing the tab twice to
help you create your code block. For instance, type “prop” and press TAB twice. It will create the
property with setter & getter.
This can be used for speeding up things. For instance,
- You can type “class” and press tab twice and your “class” structure is will created within a sec.
- You can type “if” and press tab twice and your “if-else” block will be created.
- Similarly, you can create code blocks for “function”, “for each”, “for’ and many more.
Ring Clipboard
Very useful Shortcut – ring clipboard (CTRL+ SHIFT + V), (CTRL + – ) to go to the previous position, (ALT + Selection) for square copy and square edition.
References
Hope this post is useful and worth reading. Now you at-least know 12 visual studio keyboard shortcuts useful in your day to day coding.
You may also like – Top 11 SQL keyboard Shortcuts
Pingback: Now What Is Visual Studio Codespaces? - DotNetCrunch