Remove Auto Indentation from Visual Studio

Asked

Viewed 521 times

0

good afternoon, I’m using Visual Studio a little while ago (for changes in the company) and I want it to stop "fixing" the code automatically, I made a gif trying to exemplify (the version I’m using is Community 2019)

inserir a descrição da imagem aqui

I do not want the key to go up again when I press enter, nor does it join the spaces between parentheses and etc. I tried to search in the Editor options but there was no way, someone can help me with this please?

Added below print of the options cited in the replies

inserir a descrição da imagem aqui

2 answers

0

Go to Tools or Tools, depending on the language of your VS, options/options, will open the configuration window, navigate in it:

Text Editor -> C# -> Formatting -> General , and deselect the 3 checkbox,

inserir a descrição da imagem aqui

  • MUITOOOOOOOOOO THANKS, I was looking for this option a long time ago, it worked 100%

0

See FILE > PREFERENCE > SETTINGS > TEXT EDITOR and deselect AUTO INDENT.

  • Hello Vitor, thanks for the reply but you don’t have that option there (I added in the window print question)

Browser other questions tagged

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