如何修改Sublime中的Tab为四个空格

对于sublime新手来说,特别是学习Python的用户来说,如何能使软件自动将Tab更正为指定数目的空格? 下面将介绍如这个技巧。

在Sublime的配置文件中,有对Tab的控制。具体如下:

打开Preferences ? Setting – Default,可以在发现如下内容:

// The number of spaces a tab is considered equal to

“tab_size”: 4,

// Set to true to insert spaces when tab is pressed

“translate_tabs_to_spaces”: false,

其中translate_tabs_to_spaces控制着Sublime是否将Tab自动转换为空格。我们只需要将在设置为True即可,但这样,会造成Sublime配置混乱,所以在用户配置文件中进行覆盖

打开Prefrences ? Setting –User, 添加如下内容从而覆盖软件默念设置。

// The number of spaces a tab is considered equal to

“tab_size”: 4,

// Set to true to insert spaces when tab is pressed

“translate_tabs_to_spaces”: ture,

更多Sublime Text阅读:

Ubuntu 安装代码编辑器 Sublime Text 3 (Build 3083) http://www.68idc.cn/Linux/2015-03/115534.htm

动图展示16个Sublime Text快捷键用法 http://www.68idc.cn/Linux/2014-12/110930.htm

Ubuntu 12.10 安装破解Sublime Text 2 http://www.68idc.cn/Linux/2013-07/86898.htm

高端唯有定制,把 sublime 打造成专属的 IDE http://www.68idc.cn/Linux/2015-10/124401.htm

Ubuntu 13.04安装Sublime Text 2 http://www.68idc.cn/Linux/2013-05/84228.htm

编码神器——Sublime Text 包管理工具及扩展大全 http://www.68idc.cn/Linux/2013-10/91701.htm

如何开发 Sublime Text 2 的插件 http://www.68idc.cn/Linux/2013-09/90046.htm

Windows Mac Linux下安装以及破解Sublime Text 2编辑器 http://www.68idc.cn/Linux/2013-08/89452.htm

文本编辑器Sublime Text 使用体验 http://www.68idc.cn/Linux/2013-08/89326.htm

Sublime Text 的详细介绍:请点这里Sublime Text 的下载地址:请点这里

快忘了那些不高兴的事吧!你看就连今天的阳光都如此明媚灿烂,

如何修改Sublime中的Tab为四个空格

相关文章:

你感兴趣的文章:

标签云: