Sublime Text 2 - "reopen encoding" key binding

Is there a way to define a key binding to reopen the current file with a different specific encoding? Say ctrl + alt + w to reopen the current file using Windows-1251?

Sublime is unsuccessful in detecting this encoding, and using File - Reopen with encoding .. takes too much time when I work with a large number of files in Windows-1251.

+6
source share
1 answer

You can add this to your Preferences > Key Bindings - User file.

  { "keys": ["ctrl+alt+w"], "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } } 
+13
source

Source: https://habr.com/ru/post/948707/


All Articles