sublime text3 安装配置

//Sublime Text3 配置

快捷键

展开 win+alt+]

折叠 win+alt+[

展开所有 win+k win+j

折叠第几层 win+k win+1/2/3/4/5...

//edit=>Code Folding 

Build

Tools/Build system/New build system

快捷键 ctrl+b/win+b
php
{
"cmd": ["php", "$file"],
"selector": "source.php",
"file_regex": "php$"
}
nodejs
{
"cmd": ["node", "$file"],
"selector": "source.js",
"file_regex": "js$"
}

golang

{
"cmd": ["go","run","$file"],
"selector": "source.go",
"file_regex": "go$"
}


快捷键设置

打开Preferences -> Key Bindings - User
[// 删除当前行
{ "keys": ["ctrl+d"], "command":"run_macro_file", "args": {"file":"Packages/Default/Delete Line.sublime-macro"} },
// 复制选中行到行后
{ "keys": ["ctrl+j"], "command":"duplicate_line" },
// 与上行互换
{ "keys": ["alt+up"], "command":"swap_line_up" },
// 与下行互换
{ "keys": ["alt+down"], "command":"swap_line_down" },
{ "keys": ["alt+/","alt+/"], "command":"insert_best_completion" },
//缩进
{ "keys": ["shift+tab"], "command":"unindent" },
]

设置自动换行 ,vi 模式:

打开Preferences ->Settings - User
"word_wrap":true,
"ignored_packages": [],
"vintage_start_in_command_mode": true

手动安装插件
去github 下载对应的zip 放在Installed Packages 里,注意文件名后缀

https://packagecontrol.io/installation#st3

preferences/Package Settings/Package Control/setting user

"channels": [
"http://xxx//channel_v3.json"
]

ctrl+shift+p / pcip

安装 gocode
go get -u github.com/nsf/gocode
github 上安装 GoSublime、SidebarEnhancements和Go Build

https://github.com/DisposaBoy/GoSublime

https://github.com/golang/sublime-build

注册3207
/etc/hosts

127.0.0.1 license.sublimehq.com
127.0.0.1 45.55.255.55
127.0.0.1 45.55.41.223
0.0.0.0 license.sublimehq.com
0.0.0.0 45.55.255.55
0.0.0.0 45.55.41.223
127.0.0.1 www.sublimetext.com
127.0.0.1 sublimetext.com
127.0.0.1 sublimehq.com
127.0.0.1 telemetry.sublimehq.com

mac :hex fiend
/Applications/Sublime Text.app/Contents/MacOS/Sublime Text
搜索16进制 97 94 0D 00
改为 00 00 00 00
linux 同理

Enter License

----- BEGIN LICENSE -----
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
9D2D2E61 67610860 6D338B72 5CF95C69
E36B85CC 84991F19 7575D828 470A92AB
------ END LICENSE ------

原文地址:https://www.cnblogs.com/sanmubai/p/6677679.html