

There are many more useful shortcuts, and here are some articles that can help you learning them:ĭefault keyboard shortcuts in Visual Studio Although this functionality is not available through a pre-defined shortcut, you can register one from Tools | Options | Environment | Keyboard. This can be a very helpful feature if you are a C++ developer that adhered to the East const style, and want to change text such as const int a to int const a. You can use SHIFT + ALT + + to increase the selection to the next logical block, and SHIFT + ALT + - to decrease it.Īlthough perhaps not as commonly needed as the previous features, this feature allows to change the order of the two words that follow the cursor. But it’s also possible to use the keyboard for this. It’s possible with the mouse, paying attention to what you select. You may find it is useful to expand selection to the enclosing block.
#VISUAL STUDIO HOTKEYS FOR EXPANDING CODE#
Increasing/decreasing selection of code blocks You can use CTRL + K, CTRL + F to apply formatting to the current selection (according to the settings from Tools | Options | Text Editor). You can move the current line one position down with SHIFT + ALT + T. Sometimes you may need to change the order of some lines (such as the order of some variable declaration, or order of properties defined in a JSON file).


In this post, I will share several that I find very useful and I use quite often. The Visual Studio editor has lots of functionalities, many of them available with the use of shortcuts.
