首页 / 操作系统 / Linux / 如何修改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.linuxidc.com/Linux/2015-03/115534.htm动图展示16个Sublime Text快捷键用法 http://www.linuxidc.com/Linux/2014-12/110930.htmUbuntu 12.10 安装破解Sublime Text 2 http://www.linuxidc.com/Linux/2013-07/86898.htm高端唯有定制,把 sublime 打造成专属的 IDE http://www.linuxidc.com/Linux/2015-10/124401.htmUbuntu 13.04安装Sublime Text 2 http://www.linuxidc.com/Linux/2013-05/84228.htm编码神器——Sublime Text 包管理工具及扩展大全 http://www.linuxidc.com/Linux/2013-10/91701.htm如何开发 Sublime Text 2 的插件 http://www.linuxidc.com/Linux/2013-09/90046.htmWindows Mac Linux下安装以及破解Sublime Text 2编辑器 http://www.linuxidc.com/Linux/2013-08/89452.htm文本编辑器Sublime Text 使用体验 http://www.linuxidc.com/Linux/2013-08/89326.htmSublime Text 的详细介绍:请点这里
Sublime Text 的下载地址:请点这里本文永久更新链接地址