Home > Software design >  Change default indentation for visual studio 2022
Change default indentation for visual studio 2022

Time:06-02

I want to change the default indentation on visual studio. I want it to always use tabs instead of spaces. Every other thing I've looked at either doesn't tell me how to make tabs the default or is several years out of date.

EDIT: Bit embarrassing, I already had the issue solved. The little widget in the bottom right still said it was using spaces, even though it was using tabs. I was pretty frustrated by the point I found those settings so I didn't test if they worked (although it is a bit strange to me that the widget in the bottom right wouldn't update).

CodePudding user response:

Environment:VS 2022 Community C#

Options->c#->Tabs->Keep tabs:

enter image description here

enter image description here

  • Related