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
{
}