Archive News

12 May 2010

ASP.NET Quick Tip #2

Within programming there are many common idioms such as if statements that are used on a regular basis.

Visual Studio has an extensive list of predefined snippets to aid in quick development.

Intellisense will often pick up on these snippets presenting you with a dialog such as the following:

What many people don’t realise is that at this point you can double tap the ‘tab’ key and Visual Studio will automatically generate the syntax for the snippet. You can then keep pressing tab to cycle through the options for easy population.

Hit enter once done and you will exit the loop in place to carry on coding.

These snippets can be very helpful at speeding up your production rate whilst improving accuracy as well. Be sure to look out for these snippets some useful ones include ‘switch’ and ‘prop’.

Tweets