1. Subline支持Vi模式
sublime支持原始的vi编辑器模式,但是默认的配置中是不开启vi支持的。
在菜单栏中: Preferences → Settings 即可打开配置文件进行编辑,将 ignored_packages 项的[]里面"Vintage"内容注释掉或者删除掉,右侧个性化配置如下:
{
"font_size": 10,
"ignored_packages": [""]
}
2. tab转换为空格
菜单栏: Preferences → Settings – More → Syntax Specific – User
//把tab 转换成 空格
"translate_tabs_to_spaces": true,
//设置四个空格代替tab键
"tab_size": 4,
//设置为 true 时,会在保存时自动将tab符转换为空格,如果有需要,添加这行
"expand_tabs_on_save": true
3. 支持打开命令行
-
Ctrl shift p 打开命令面板,输入 Install Package
-
输入“Terminus”,安装,重启
-
Preferences >Package Settings > Terminus > Command Palette
[ { "caption": "Terminal (panel)", "command": "terminus_open", "args" : { "cmd": "bash", "cwd": "${file_path:${folder}}", "title": "Command Prompt", "panel_name": "Terminus" } } ]
-
选择 Preferences >Package Settings > Terminus > Key Bindings
[ { "keys": ["alt+1"], "command": "terminus_open", "args" : { "cmd": "bash", "cwd": "${file_path:${folder}}", "panel_name": "Terminus" } } ]