开发工具 Sublime Text 如何设置缩进

springwq · 2015年03月20日 · 最后由 hanyangwang 回复于 2015年03月20日 · 3854 次阅读

刚刚开始用 Sublime Text 3, 如何设置缩进呢?比如 Ruby 缩进为 2,C 缩进为 3.

http://feliving.github.io/Sublime-Text-3-Documentation/indentation.html 单独语法设置,然后每次就正常的 cmd + shift + p 选语法就好~

// The number of spaces a tab is considered equal to "tab_size": 2, // Set to true to insert spaces when tab is pressed "translate_tabs_to_spaces": true, 这个是 2 的,3 你试试行不行

#2 楼 @fate 这个 每次都有是 缩进为 2 了,也 OK, 习惯了缩进为 2。像 vim 可以写配置文件,自动判断语言然后用不同的缩进,不知道 ST 3 行不行。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号