如何在Sublime Text中查看文件的当前编码?

本文翻译自:How do I see the current encoding of a file in Sublime Text?

How do I see the current encoding of a file in Sublime Text? 如何在Sublime Text中查看文件的当前编码?

This seems like a pretty simple thing to do but searching has not yielded much. 这似乎是一件非常简单的事情,但搜索并没有产生太大的影响。 Any pointers would be appreciated! 任何指针将不胜感激!


#1楼

参考:https://stackoom.com/question/15xHj/如何在Sublime-Text中查看文件的当前编码


#2楼

With the EncodingHelper plugin you can view the encoding of the file on the status bar. 使用EncodingHelper插件,您可以在状态栏上查看文件的编码。 Also you can convert the encoding of the file and extended another functionalities. 您还可以转换文件的编码并扩展其他功能。

演示


#3楼

Another option in case you don't wanna use a plugin: 如果您不想使用插件,另一个选项:

Ctrl + ` or Ctrl + `

View -> Show Console

type on the console the following command: 在控制台上键入以下命令:

view.encoding()

In case you want to something more intrusive, there's a option to create an shortcut that executes the following command: 如果您想要更具侵入性的东西,可以选择创建执行以下命令的快捷方式:

sublime.message_dialog(view.encoding())

#4楼

插件ConverToUTF8也具有该功能。


#5楼

ShowEncoding is another simple plugin that shows you the encoding in the status bar. ShowEncoding是另一个简单的插件,可以在状态栏中显示编码。 That's all it does, to convert between encodings use the built-in "Save with Encoding" and "Reopen with Encoding" commands. 就是这样,在编码之间进行转换时使用内置的“Save with Encoding”和“Reopen with Encoding”命令。


#6楼

由于这个帖子在谷歌搜索中是一个流行的结果,这里是为崇高文本3 build 3059+做的方法:在用户首选项中,添加以下行:

"show_encoding": true
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值