If I am writing some code in Visual Studio,
while(true)
{
if (foo == bar)
MessageBox.Show("ASDF");
}
And I want the code to only display the messagebox when the application is running in Debug mode, I would write #if DEBUG, #endif. But Visual studio doesn't automatically tab the # operator so it is written like this:
while(true)
{
if (foo == bar)
#if DEBUG
MessageBox.Show("ASDF");
#endif
}
Having to manually indent any lines that has # is annoying. How do I make visual studio to automatically tab # operators? I am using VS2010