为每个eclipse项目设置文本文件编码 [英] Setting text file encoding per eclipse project

查看:273
本文介绍了为每个eclipse项目设置文本文件编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以为我在eclipse上的每个项目设置不同的文件编码。

I wanted to know if its posible to set a different file encoding per each project I have on eclipse.

我知道我可以拥有不同的工作区并设置一个每个都有不同的编码,但是id喜欢将我的所有项目放在一个上,如果可行...

I know that I can have different workspaces and set a different encoding for each one, but id like to have all my projects on one, if posible...

推荐答案

是的你可以。

打开项目的属性,然后选择资源选项卡。将文本文件编码设置为您想要的。

Open the Properties for the Project and select the 'Resource' tab. Set the 'Text file encoding' to what you want.

确保项目中的所有文件的文本文件编码都设置为默认(从容器继承) '

Make sure that all the files in the project have their Text file encoding set to 'Default (inherited from container)'

您也可以用同样的方式设置文件夹中所有内容的默认值。

You can also set the defaults for everything in a Folder in the same way.

这篇关于为每个eclipse项目设置文本文件编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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