
Want a piece of code within an if-condition or a for-loop. VS offers many snippets like try-catch, for, class, foreach etc Baam! the if-condition is completed for you. Type if and then press the tab key twice. Bored of writing if-conditions and making sure that they are surrounded by braces? Searching for the menubar and the panels while on Full Screen? This is here to rescueĪ simple search box is opened you can start typing after pressing this hotkey and press again to go to next resultīest of the shortcuts. Full Screen without losing the panels Alt+Shift+Enter.This is the hotkey for the back and forward buttons Navigate Forward/Backward Ctrl+–/Ctrl+Shift+–įorgot the previous location of your cursor? Don’t worry.You can bulk comment and uncomment by using this shortcut. Comment/Uncomment block of code Ctrl+K+C/Ctrl+K+U.Sometimes you would want to hide the annoying code that is blocking your view or distracting you, use this then. Collapse/Expand selection Ctrl+M+H/Ctrl+M+U.They do all with their precious keystrokes combined with Shift, Ctrl, and Alt, Is’nt it? And who wouldn’t like shortcuts after all?įor those people who use Visual Studio to write code, behold I present you few of my favorite and best shortcuts that can be used while writing and managing code.

Sometimes I used to wonder how the system administrators are very fast in setting up things, restarting a crashed network, etc.

It is found that you could be more efficient and appear smarter if you use shortcut keys rather than doing things with the mouse.
