Build the project using CTRL + SHIFT + B.Open Package Manager Console using ALT + T + N and press Enter key.Create while loop using wh and press TAB twice.Create for loop using for and press TAB twice.Create do while loop using do and press TAB twice.Create foreach() loop using fore and press TAB twice.Create Interface using int and press TAB twice.Create MessageBox.show(“”) using mbox andpress TAB twice.Create try finally block using tryf and press TAB twice.For creating void main method use svm and press TAB twice.Create auto implemented properties with 'get' accessor and private 'set' accessor using propg and press TAB twice.For creating static int Main (string args), use sim and press TAB twice.For creating a region, use reg and press TAB twice.For creating Unit test method, use testm and press TAB twice.For creating unit test class in MVC application, use test and press TAB twice.For creating MVC action method, use mvcp and press TAB twice.
For creating an MVC action method use mvc4 and press TAB twice.
In this article, I am going to discuss some more tricks that can insert code snippets just by few keystrokes.
This is in continuation with article 1 where I discussed about how one can be more productive with Visual Studio.