SublimeText3配置
原文链接 http://code.lujq.me/2015/04/14/SublimeText3%E9%85%8D%E7%BD%AE/
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。
安装Package Control
<!-- more --> 使用Ctrl + ` 打开Sublime Text控制台。
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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)
插件
- AutoFileName 自动补全文件名
- BracketHighlighter 括号高亮
- Color Highlighter
- Colorcoder 代码多颜色
- ConvertToUFT8 字符编码转换
- CSS Format CSS代码整理
- DashDoc 查文档,需要设置F1
- DeleteBlankLines 删除空行
- Emmet 快速写HTML标签
- HTML-CSS-JS Prettify 代码整理
- HTMLBeautify 代码整理
- jsFormat 代码整理
- LaTeXTools Latex工具
- LiveStyle 自动刷新浏览器
- Markdown Preview Markdown文件预览
- SideBarEnhancements 侧边栏增强工具
- SublimeCodeIntel 代码提示工具
- TrailingSpaces 删除空白 Ctrl+Shifr+D
配置文件
Preferences/Settings - User
:
{
"color_scheme": "Packages/Colorcoder/Monokai Bright (Colorcoded).tmTheme",
"font_size": 15,
"highlight_line": true,
"ignored_packages":
[
"Markdown",
"Vintage"
],
"open_files_in_new_window": false,
"original_color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"word_wrap": 100,
"tab_size": 4
}
键盘绑定
Key Bindings - User
[
{ "keys": ["ctrl+shift+c"], "command": "copy_path" },
{ "keys": ["f1"], "command": "dash_doc"},
{ "keys": ["shift+command+d"], "command": "delete_trailing_spaces" },
{ "keys": ["shift+command+f"], "command": "reindent", "args":{"single_line":false} },//格式化html代码
{ "keys": ["f2"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "/Applications/Google Chrome.app",
"extensions":".*"
}
}
]