我有sublime-project文件如下:
{
"default_encoding": "Central European (ISO 8859-2)",
"fallback_encoding": "Central European (ISO 8859-2)",
"folders":
[
{
"folder_exclude_patterns":
[
"*.Trash*"
],
"follow_symlinks": true,
"path": "cok_gnb"
},
{
"follow_symlinks": true,
"path": "Dokumenty"
}
],
"settings":
{
"line_padding_bottom": 3,
"tab_size": 4
}
}
选项:“default_encoding”和“fallback_encoding”无效 - 当我打开ST2文件时,已经打开了Windows 1252编码。
怎么了?也许有另一个选项迫使ST2使用编码?
当我忘记使用“打开编码”菜单选项并弄乱大文件时有点令人沮丧,有时我必须将其删除并再次从回购中拉出来。
我使用的是OpenSuse 12.3。
答案 0 :(得分:9)
您应该将"default_encoding"
和"fallback_encoding"
放入"settings"
{
"folders":
[
{
"folder_exclude_patterns":
[
"*.Trash*"
],
"follow_symlinks": true,
"path": "cok_gnb"
},
{
"follow_symlinks": true,
"path": "Dokumenty"
}
],
"settings":
{
"default_encoding": "Central European (ISO 8859-2)",
"fallback_encoding": "Central European (ISO 8859-2)",
"line_padding_bottom": 3,
"tab_size": 4
}
}