I really don’t like this style of formatting:
Class AwesomeClass
{
private static void AwesomeMethod()
{
}
}
Can I make it format my code like this?
Class AwesomeClass {
private static void AwesomeMethod() {
}
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Go to Tools > Options > Text Editor > C# > Formatting > New Lines.
In recent version of Visual Studio (at least 2017):
Tools > Options > Text Editor > C# > Code Style > Formatting > New Lines
Then just uncheck every option you see there.