win7默认不是utf8
sublime text ,默认不支持GB2312和GBK编码。
一、设置不自动打开最近使用过的标签:
打开Preferences >>Settings-Default
修改对应设置如下:
"hot_exit": false,
"remember_open_files": false,
二、标签乱码的解决办法
编辑文件:
C:\Users\替换成你的用户名\AppData\Roaming\Sublime Text 2\Packages\GBK Encoding Support\sublime_gbk.py
#为注释内容;无#的为新加内容
#tmp_file_name = urllib.quote_plus(os.path.basename(file_name)) + SEPERATOR + urllib.quote_plus(file_name)
#tmp_file = os.path.join(TEMP_PATH, tmp_file_name)
#f = file(tmp_file, 'w')
f=file(view.file_name(),'w')
#window.open_file(tmp_file)
window.open_file(file_name)