Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I don't want spaces when I tab in visual studio 2010

Whenever I add a tab in VS 2010, it puts spaces instead. I know you could fix this problem by going in the VS 2008 options, but I can't figure out how to fix this in VS 2010.

like image 701
Jello Avatar asked Aug 17 '11 21:08

Jello


People also ask

How do I remove tab space in Visual Studio?

You set your Visual Studio options (Tools/Options/Text Editor) to use spaces instead of tabs and then you open a source file and Ctrl-E,D (Edit/Advanced/Format Document) and it will convert them all for you!

How do I use tabs instead of spaces in Visual Studio?

This is the Adaptive Formatting behavior in Visual Studio: the Editor heuristically determines if the current file should use Tabs or Spaces for indentation. To turn off this behavior, please go to Tools > Options, and then Text Editor > Advanced > Uncheck "Use adaptive formatting".


1 Answers

Tools > Options > Text Editor > All Languages > Tabs > enable "Keep Tabs". 

You can also adjust this setting on a per-language basis.

like image 171
JYelton Avatar answered Sep 28 '22 20:09

JYelton