Visual Studio Indentation Configuration

Asked

Viewed 4,748 times

7

I’m starting to program C# in the VS (if anyone knows a better IDE, thank you) and he has a peculiarity that is irritating me: I use key indentation as follows:

for(;;){
   //code
} 

But the VS, when you enter the keys together ( for(;;){} ), it automatically sets them to

for(;;)
{
   //code
}

I appreciate if someone can answer me if they have a way to switch to the first indentation cited and if they have, show me how.

1 answer

6


Go to Tools > Options > Text Editor > C# > Formatting > New Lines:

Options

Check or uncheck the options until you get the desired behavior.

  • 1

    Perfect, got it here, thanks! <3

Browser other questions tagged

You are not signed in. Login or sign up in order to post.