首页 > 代码库 > sublime使用总结

sublime使用总结

1、sublime3下载

sublime3下载地址

2、设置
字体大小设置:Preferences--->设置-用户 ctrl+f(搜索)font_size
自动换行:Preferences--->设置-用户 "word_wrap": "true",

3、安装Package Control
ctrl+~ 输入
import urllib.request,os,hashlib; h = ‘2deb499853c4371624f5a07e27c334aa‘ + ‘bf8c4e67d14fb0525ba4f89698a6d7e1‘; 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)
或者浏览 https://sublime.wbond.net/installation

4、安装插件
ctrl+shif+p
输入 ip

1)安装防止中文乱码插件
输入utf 选择ConvertToUTF8,安装成功后在用户设置里添加
{
// supported encoding list, name & code in pair
"encoding_list" : [
["Chinese Simplified (GBK)", "GBK"],
["Chinese Traditional (BIG5)", "BIG5"],
["Korean (EUC-KR)", "EUC-KR"],
["Japanese (CP932)", "CP932"],
["Japanese (Shift_JIS)", "Shift_JIS"],
["Japanese (EUC-JP)", "EUC-JP"],
["UTF-8", "UTF-8"]
],

// Maximum size for encoding cache, 0 means no cache
"max_cache_size" : 100,

// Maximum lines to detect, 0 means unlimited
"max_detect_lines" : 600,

// Convert when previewing file: true or false
"preview_action" : false,

// Encoding for new file, empty means using sublime text‘s "default_encoding" setting
"default_encoding_on_create" : "",

// Set this option to true will cause Sublime Text reload the saved file when losing focus
"lazy_reload": false,

// Convert in Find Results view
"convert_on_find": false,

// Convert when loading/saving a file
"convert_on_load" : true,
"convert_on_save" : true

}
重启即可
2)安装日期插件
ctrl+shif+p 搜索date 安装
安装成功后 ctrl+f5+f5即可显示日期
3)安装主题 Soda
4)安装emmet
……

sublime插件很多,也很酷,大家慢慢发掘吧

 

sublime使用总结