Visual Studio用4个空格替换选项卡? [英] Visual Studio replace tab with 4 spaces?

查看:97
本文介绍了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.

这篇关于Visual Studio用4个空格替换选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆