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

springwq · March 20, 2015 · Last by hanyangwang replied at March 20, 2015 · 3857 hits

刚刚开始用 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 行不行。

You need to Sign in before reply, if you don't have an account, please Sign up first.