Visual Studio用4个空格替换选项卡?

问题描述:

有没有一种方法可以将TAB按钮设置为在Visual Studio 2010中用作4个空格,而不是转到编辑"->高级"->取消制表所选行"?

Is there a way to set TAB button to work as 4 spaces in Visual Studio 2010 instead of going to Edit->Advanced->Untabify Selected Lines?

您可以在以下位置编辑此行为:

You can edit this behavior in:

Tools->Options->Text Editor->All Languages->Tabs

更改选项卡以使用插入空格"代替保留选项卡".

Change Tab to use "Insert Spaces" instead of "Keep Tabs".

请注意,如果您希望特定语言有不同的行为,也可以为每种语言指定此名称.

Note you can also specify this per language if you wish to have different behavior in a specific language.