In the previous section we mentioned two of the combinations that are used for formatting code. One of them [CTRL + K + D] is used for formatting the whole code in a file, and the second one [CTRL + K + F] serves if we want to format just a piece of the code. These combinations are called shortcuts and now we will give more thorough information about them.
Shortcuts are combinations that give us the possibility to do some things in an easier and faster way, and each IDE has its shortcuts, even though most of them are recurring. Now we will look at some of the shortcuts in Visual Studio.
|[CTRL + F]||The combination opens the search window, by which we can search in our code.|
|[CTRL + K + C]||Comments part of the code.|
|[CTRL + K + U]||Uncomments a code, which is already commented.|
|[CTRL + Z]||Brings back one change (so-called Undo).|
|[CTRL + Y]||The combination is opposite of [CTRL + Z] (the so-called Redo).|
|[CTRL + K + D]||Formats the code according the default conventions.|
|[CTRL + Backspace]||Deletes the word to the left of the cursor.|
|[CTRL + Del]||Deletes the word to the right of the cursor.|
|[CTRL + Shift + S]||Saves all files in the project.|
|[CTRL + S]||Saves the current file.|
More about the shortcuts in Visual Studio can be found here: https://shortcutworld.com/en/Visual-Studio/2015/win/all.