How to save time, mouse clicks and keystrokes by using keyboard-shortcuts in Visual Studio.

The following list contains my favorite keyboard-shortcuts in Visual Studio:

Apart from the previous shortcuts, I find it very useful that I when start typing a keyword in Visual Studio and I press tab twice Visual Studio automatically adds a complete “template”-snippet for this keyword:

You can practically create every code snippet you can imagine simple by starting typing the keyword and then press tab twice. For example:

if creates a new if clause, else creates a new else clause, for creates a new for clause, try creates a new try…catch block.

Try experimenting with these commands and remember, always press tab twice :)

comments powered by Disqus