Mac
键对应说明
Sublime Text3 keys | MAC keys |
---|---|
super | command |
alt | option |
ctrl | control |
key set
[
{ "keys": ["super+w"], "command": "find_under_expand" },
{ "keys": ["super+d"], "command": "duplicate_line" },
{ "keys": ["super+r"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
{ "keys": ["super+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+shift+u"], "command": "upper_case" },
{ "keys": ["super+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["super+shift+8"], "command": "split_selection_into_lines"},
{ "keys": ["super+f4"], "command": "close" },
/* Home 键配置跳转到行首、行尾 */
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false}},
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true}},
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
]
setting
{
"font_size": 14,
"font_face": "JetBrains Mono",
"hot_exit": true,
"ignored_packages":
[
"Vintage"
],
"remember_open_files": true,
"theme": "Default.sublime-theme"
}
安装 json pretty
插件
官网:https://packagecontrol.io/installation#st3
- 安装
install package
点击菜单中的 View > Show Console
。把下面的代码粘贴进去后回车,稍微等待一会。(若安装失败,访问官网获取最新代码)
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
-
完成后,重启
sublime
。 -
安装
pretty json
使用 Command + Shift + P
调出面板,然后输入 pci
,选中 Package Control: Install Package
并回车,然后通过输入插件的名字 pretty json
找到插件并回车安装即可。