Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change default indentation in Visual Studio 2022

How do I change the default indentation in Visual Studio?

I want it to always use tabs instead of spaces.

Everywhere I've looked it 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).

like image 556
pixel trex Avatar asked Jan 17 '26 21:01

pixel trex


1 Answers

Environment:VS 2022 Community C#

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

enter image description here

enter image description here

like image 144
Jiale Xue Avatar answered Jan 19 '26 11:01

Jiale Xue



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!