gpt4 book ai didi

character-encoding - 如何在 SublimeText2 中有效地设置项目默认编码?

转载 作者:行者123 更新时间:2023-12-01 08:59:55 25 4
gpt4 key购买 nike

我有 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 使用编码?

当我忘记使用“使用编码打开”菜单选项并弄乱大文件时,这令人沮丧,有时我不得不将其删除并再次从 repo 中提取。

我使用 OpenSuse 12.3。

最佳答案

您应该将 "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
}
}

关于character-encoding - 如何在 SublimeText2 中有效地设置项目默认编码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19538153/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com