赞
踩
1、离线安装controll package
2、离线安装pretty json
2.1 下载
- git clone https://github.com/dzhibas/SublimePrettyJson.git
- cd SublimePrettyJson
- git checkout st3
2.2 放到合适文件下
打开sublime3->Preferences->Browse Packages,将文件夹SublimePrettyJson拷贝至这个目录下
3、更改pretty json快捷键(改为ctrl+j 或mac上:cmd+j)
因为pretty json快捷键用着不爽,
在preferences里面,key binds更改
{ "keys": ["ctrl+alt+j"], "command": "join_lines" },//这个是原生的ctrl+j, 是把非一行的变成一行。感觉和pretty json是反着来的,也可以是任何非json的,比pretty自带的快捷键好用。
{ "keys": ["ctrl+j"], "command": "pretty_json" },//这个就是改进后的新快捷键
附我的快捷键(eclipse):
- [
- { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
- { "keys": ["f12"], "command": "htmlprettify"},
- { "keys": ["f1"], "command": "fold" },
- { "keys": ["f2"], "command": "unfold" },
- { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
- { "keys": ["ctrl+space"], "command": "auto_complete" },
- { "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
- [
- { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
- { "key": "auto_complete_visible", "operator": "equal", "operand": false },
- { "key": "setting.tab_completion", "operator": "equal", "operand": true }
- ]
- },
- { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
- { "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } },
- { "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": true } },
- { "keys": ["ctrl+shift+f"], "command": "reindent" , "args": {"single_line": false}},
- { "keys": ["alt+up"], "command": "swap_line_up" },
- { "keys": ["alt+down"], "command": "swap_line_down" },
- { "keys": ["ctrl+alt+down"], "command": "duplicate_line" },
- { "keys": ["shift+ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
- { "keys": ["ctrl+shift+s"], "command": "save_all" },
- { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
- { "keys": ["shift+ctrl+f4"], "command": "close_all" },
- { "keys": ["shift+ctrl+y"], "command": "lower_case" },
- { "keys": ["shift+ctrl+x"], "command": "upper_case" },
- { "keys": ["ctrl+alt+j"], "command": "join_lines" },
- { "keys": ["ctrl+j"], "command": "pretty_json" },
- { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "find_in_files"} },
- { "keys": ["ctrl+alt+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
- { "keys": ["alt+-"], "command": "move", "args": {"by": "subwords", "forward": false} },
- { "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
- { "keys": ["alt+left"], "command": "jump_back" },
- ]
mac(ctrl -> super)
- [
- { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
- { "keys": ["f12"], "command": "htmlprettify"},
- { "keys": ["f1"], "command": "fold" },
- { "keys": ["f2"], "command": "unfold" },
- { "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
-
- { "keys": ["super+space"], "command": "auto_complete" },
- { "keys": ["super+space"], "command": "replace_completion_with_auto_complete", "context":
- [
- { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
- { "key": "auto_complete_visible", "operator": "equal", "operand": false },
- { "key": "setting.tab_completion", "operator": "equal", "operand": true }
- ]
- },
- { "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
- { "keys": ["super+shift+c"], "command": "toggle_comment", "args": { "block": false } },
- { "keys": ["super+shift+c"], "command": "toggle_comment", "args": { "block": true } },
- { "keys": ["super+shift+f"], "command": "reindent" , "args": {"single_line": false}},
- { "keys": ["alt+up"], "command": "swap_line_up" },
- { "keys": ["alt+down"], "command": "swap_line_down" },
- { "keys": ["super+alt+down"], "command": "duplicate_line" },
- { "keys": ["shift+super+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
- { "keys": ["super+shift+s"], "command": "save_all" },
- { "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
- { "keys": ["shift+super+f4"], "command": "close_all" },
- { "keys": ["shift+super+y"], "command": "lower_case" },
- { "keys": ["shift+super+x"], "command": "upper_case" },
- { "keys": ["super+alt+j"], "command": "join_lines" },
- { "keys": ["super+j"], "command": "pretty_json" },
- ]
4、手动安装文件对比工具:Sublimerge 3.sublime-package
a). 下载安装包:Sublimerge 3.sublime-package
b). 在Sublime中选择菜单: Preferences > Browse Packages...
c). 进入上一级目录
d). 进入"Installed Packages"目录,把下载的安装包拷贝到这里
e). 重启Sublime Text完成安装!
5、离线安装sql格式化工具:SqlBeautifier (如安装6,则5不用安装)
a). 下载安装包:GitHub - zsong/SqlBeautifier: A sublime plugin to format SQL. It supports both sublime 2 and 3. -> code -> download ZIP
b). 在Sublime中选择菜单: Preferences > Browse Packages...
c). 把下载的安装包放这里
d). 解压到当前文件夹
e). 重启Sublime Text完成安装!
使用:见官网:GitHub - zsong/SqlBeautifier: A sublime plugin to format SQL. It supports both sublime 2 and 3.
6、离线安装 SQLTools
Navicat是收费。mysql work bench 又难用。所以当时还研究了一下这个,没想到挺好用的。安装完这个,5是不用安装了。
a). 下载安装包:GitHub - mtxr/SublimeText-SQLTools: SQLTools for Sublime Text 3 -> code -> download ZIP
b). 在Sublime中选择菜单: Preferences > Browse Packages...
c). 把下载的安装包放这里
d). 解压到当前文件夹,重命名SQLTools
e). 重启Sublime Text完成安装!
更多使用方法:SQLTools | Sqltools
7、安装Sublime Merge | Git client from the makers of Sublime Text
安装好后,会自动在sublime集成,在sublime中打开git相关项目,右键会有file history和line history,能看到文件更改历史
8. 以上内容在线安装
Sublime Text 4 如何安装Package...
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。