DCSIMG
Cool trick with TAB in Visual Studio for auto completing code blocks - Gilad Lavian's Blog

Gilad Lavian's Blog

In Development

Cool trick with TAB in Visual Studio for auto completing code blocks

I found a cool trick for auto completing some code blocks. Personally, I find it very convenient while i'm in hyperspace speed coding. Its called snippets and its built-in in Visual Studio, and you can create one yoursefe.

When you start a new "try" block, after finishing to write "try", immediately press TAB button, it will auto complete to:

try
{

}
catch (Exception)
{
    
    throw;
}

When you start a new condition block, "if (2 > 1)", and after you add the "else" condition, after finishing to write "else", immediately press TAB button, it will auto complete to:

if (2 > 1)
{
}
else
{

}

תוכן התגובה

Kim כתב/ה:

You should try CodeRush or ReSharper. They will redefine your perception of hyperspace speed coding.

:-)

# July 17, 2007 8:40 PM

Gilad Lavian כתב/ה:

I familiar with the ReSharper,  the problem - its cost $$ :-)

About the CodeRush, didn't here about it, will check it out.

Thanks...

# July 17, 2007 9:23 PM
שלח תגובה

(שדה חובה)  

(שדה חובה)  

(אופציונלי)

(שדה חובה) 

Please add 4 and 2 and type the answer here:


Enter the numbers above: