2013-10-23 84 views
3

我有崇高的項目文件,如下所示:如何在SublimeText2中有效設置項目默認編碼?

{ 
"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使用編碼?

當我忘記使用「Open with encoding」菜單選項並混亂大文件時,有時候我必須將其刪除並再次從回購庫中取出,這令人沮喪。

我使用OpenSuse 12.3。

+0

我沒有一個答案,但你試試這個:http://www.sublimetext.com/forum/viewtopic.php?f=2&t = 11688 –

回答

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 
    } 
} 
相關問題