Fixing identation after and if statement Visual Studio 2019 programming in C#

After I type if (view=="") { and press Enter, VS formats and indents the curly braces to this:

 if (view == "")
            {

            }

How can I change the settings in Visual Studio 2019 to just have it like this

  if (view == "")
  {

  }

I've been looking and trying different combinations and can't seem to find the setting.


Solution 1:

If you want to get the format you need, you can refer to the parameters of this option:

Tools>Options>Text Editor>C#>Code Style>Formatting>Indentation, uncheck the option ”Indent open and close braces”.

enter image description here