‘forr’ shortcut in Visual Studio 2008/2010

I hit upon this new shortcut key for a ‘for’ loop.

Alright, most of you know that you can type ‘prop’ in a code-behind file and you’ll get a ‘template’ (for lack of a better word) for declaring a property.

image1 image2 image6

You can now start typing the type name and then hit ‘Tab’ to go the property name and give it a name.

I’m sure you also know the same about a for / foreach loop:

image3 image4

But look at the first image above and what’s that ‘forr’? Turns out that’s for-reverse:

image5

Although I have not been in much scenarios where I need a reverse for loop, but this is really handy for the few times you’ll use it. There’s also an article on MSDN that lists all these snippets.

Published Friday, July 23, 2010 8:46 PM by nmarun

Comments

# re: ‘forr’ shortcut in Visual Studio 2008/2010

Friday, July 23, 2010 10:22 AM by nmarun

PS: I've mentioned only VS 2008 and 2010 versions as I was not able to test this in 2005.

# re: ‘forr’ shortcut in Visual Studio 2008/2010

Friday, July 23, 2010 1:22 PM by Goudinov

I use reverse loops quite often if I want to remove rows from a dataset or from any collection, really.

Thanks for the tip!

# re: ‘forr’ shortcut in Visual Studio 2008/2010

Friday, July 23, 2010 1:53 PM by Arun Mahendrakar

Goudinov, you're right... I've used reverse loops for the same reason. Glad this article helped you.

Arun

# IIS, Windows Server 2003, ASP. NET. . . ? | Uncategorized | Information about Web Hosting, Web hosting service!

Pingback from  IIS, Windows Server 2003, ASP. NET. . . ? | Uncategorized | Information about Web Hosting, Web hosting service!

# www.Richard-Weaving.com » Visual 2000 Partners with xLM Solutions for VisualPLM.net Implementation Services

Pingback from  www.Richard-Weaving.com  » Visual 2000 Partners with xLM Solutions for VisualPLM.net Implementation Services

# Twitter Trackbacks for ???forr??? shortcut in Visual Studio 2008/2010 - IBloggable - implemented [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 ???forr??? shortcut in Visual Studio 2008/2010 - IBloggable - implemented         [asp.net]        on Topsy.com

# re: ‘forr’ shortcut in Visual Studio 2008/2010

Monday, July 26, 2010 12:52 AM by habdulrauf

Great short cut.

# re: ‘forr’ shortcut in Visual Studio 2008/2010

Monday, July 26, 2010 9:46 AM by Arun Mahendrakar

Glad you find it useful.

Arun

# re: ‘forr’ shortcut in Visual Studio 2008/2010

Monday, May 14, 2012 10:02 PM by Lou

You are right!almost everyone of us made the same msaitke when we started. You start a new site filling it up with tons of ads thinking people will get into it and click on them Then you realize this is not the right way because you hate a site like this when you are looking for information, so why to have one of them?? The best way is to make a big family around your audience and this is only possible if you have their trust made up about telling useful and probed by yourself content to them.

Leave a Comment

(required) 
(required) 
(optional)
(required)