doproio / team

团队会议,讨论等
19 stars 6 forks source link

Sublime Text 内网配置 #4

Open hkz404 opened 10 years ago

hkz404 commented 10 years ago

一、初始化

首先安装 Package Control,按快捷键 `Ctrl + ``,然后输入:

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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)

二、设置代理

工具栏 Preferences > Package Settings > Package Control > Settings – User,输入:

* "http_proxy": "http://proxy.xx.com:8080/"
* "https_proxy": "http://proxy.xx.com:8080/"

三、其他设置

1、设置 Tab 缩进空格数:

工具栏 Packages > Browse Packages > User > Preferences.sublime-settings,输入:

{
    "tab_size": 4,
    "translate_tabs_to_spaces": false
}

2、让连字符 - 可选

工具栏 Packages > Browse Packages > User > Preferences.sublime-settings,找到 word_separators , 然后删除值里的 -,如果这个文件没有内容,则添加下列:

"word_separators": "./\\()\"':,.;<>~!@#$%^&*|+=[]{}`~?"
hkz404 commented 10 years ago

四、插件推荐