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

查看:180
本文介绍了如何在Sublime Text 2中查看文件的当前编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I see the current encoding of a file in Sublime Text 2?

这似乎是一件很简单的事情,但是搜索没有产生太多的效果。任何指针都将不胜感激!

This seems like a pretty simple thing to do but searching has not yielded much. Any pointers would be appreciated!

推荐答案

如果您不想使用插件,另一个选项:

Another option in case you don't wanna use a plugin:

Ctrl + `

Ctrl+` or

查看 - >在控制台上显示控制台

键入以下命令:

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())

这篇关于如何在Sublime Text 2中查看文件的当前编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆