简体   繁体   中英

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.

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

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

Regarding the first anwser... "Keep Tabs" will only work until you start using linq queries. When visual studio formats linq queries adds some spaces for paddind.

There are no built-in support in vs2010 for strict indentation using tabs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM