@[toc]
一、 下载 3211版本.zip免安装版本
sublime3 Package Contro 和 channel_v3.json
sublime3 3211
二、激活
1 先使用二进制编辑器破坏软件认证
在这里插入图片描述
2 修改本地hosts破坏软件联网
路径C:\Windows\System32\drivers\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
在这里插入图片描述
3 输入闭环验证码
打开Sublime Text 3
选择Help -> 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 ------
提示激活成功
二、 插入Package Control
preferences->browser packages
将下载好的Package Control移动到packages路径下
在这里插入图片描述
修改下载网址 channel_v3.json
在这里插入图片描述
{
"bootstrapped": true,
"channels":
[
"D:/ProgramFiles/Sublime Text Build 3211 x64/channel_v3.json" # 需要修改的就是这里的路径
],
"in_process_packages":
[
],
"installed_packages":
[
"10% Too Dull for My Tastes Color Scheme",
"1337 Color Scheme",
"Anaconda",
"Colorsublime",
"MarkdownEditing",
"Package Control",
"Pylinter"
]
}
三、 插入插件
Ctrl+shift+P
在这里插入图片描述
跳转到安装插件输入框
输入需要安装的插件
在这里插入图片描述
1 安装Python自动填充插件 Anconda
preferences->Package Settings - > Anconda->默认设置
"python_interpreter": "D:/ProgramFiles/python3.6.8/python.exe",
preferences->Package Settings - > Anconda->默用户设置
{
"python_interpreter":"D:/ProgramFiles/python3.6.8/python.exe",
"suppress_word_completions":true,
"suppress_explicit_completions":true,
"comlete_parameters":true,
"swallow_startup_errors":true,
"anaconda_linting":false
}
2 ColorSublime 颜色主题,安装好后可以在选择颜色主题
在这里插入图片描述
3 这些是安装的插件
在这里插入图片描述
函数跳转设置
首选项,浏览插件目录,然后新建文件输入代码就好了
在这里插入图片描述
[
{
"button": "button2",
"count": 1,
"modifiers": ["ctrl"],
"command": "jump_back"
},
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
"command": "goto_definition"
}
]
4 设置快捷键
preferences->key buildings
[
{
"keys": ["f5"],
"caption": "SublimeREPL:Python",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
//自动提示代码
{
"keys": ["ctrl+j"],
"command": "code_intel_auto_complete"
},
//跳转到函数定义
{
"keys": ["alt+right"],
"command": "goto_python_definition"
},
//返回到跳转位置
{
"keys": ["alt+left"],
"command": "back_to_python_definition"
},
{ "keys": ["enter"], "command": "auto_indent_tag", "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "punctuation.definition.tag.begin", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": ">$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^</", "match_all": true },
]
},
{ //删除当前行
"keys" : ["ctrl+d"],
"command" : "run_macro_file",
"args" : {
"file" : "res://Packages/Default/Delete Line.sublime-macro",
}
},
{ //复制当前行
"keys": ["ctrl+alt+down"],
"command": "duplicate_line",
},
{ //向上移动当前行
"keys": ["alt+up"],
"command": "swap_line_up"
},
{ //向上移动当前行
"keys": ["alt+down"],
"command": "swap_line_down"
},
]
5 汉化 ChineseLocalizitions
安装完成后就可以切换简体中文了
在这里插入图片描述
6 等号对齐alignment
例如
training_epochs = 25
batch_size = 100
display_step = 1
saver = tf.train.Saver()
model_path = "log/521model.ckpt"
因为快捷键是alt+ctrl+A与QQ截图有冲突,
修改快捷键
在这里插入图片描述
在最后添加
{ //自动补等号左右齐
"keys": ["ctrl+alt+q"],
"command": "alignment" },
在这里插入图片描述