.NET Tip of The Day
Learn one new .NET trick every day
Login or Join
.NET Tips & Tricks Community RSS

Those who prefer reading this site through RSS now can also subscribe for updates to .NET Tips & Tricks Community.

Use Tab twice to get the code snippets that are available within code editor

Take for example of foreach loop, just press 2 tabs after typing "fore"... that's it you got the code snippet as mentioned below:

foreach code snippet

Other useful code snippets are:

  • for - for loop
  • while - for while loop
  • equals - snippet for implementing Equals() according to quidelines
  • prop - for public property and backing field
  • tryf - for try finally
  • indexer - for indexer

For more information on code snippets that are included in Visual C# by default, see Default Code Snippets.

via Chakravarthy,
InteQ Solutions

9/15/2007
RSS .NET Tip of The Day
Subscribe to receive one tip from the .NET Tips and Tricks Community per day.
Previous Tips of The Day
The best of the .NET Tips & Tricks Community.
.NET Practitioners .NET Tips & Tricks Community
Every .NET practitioner has a trick up in their sleeve. This is the place to share it with other .NET people.
Submit a Tip
Discovered a new trick? Share it with others.
My Tips
Manage tips you authored.