Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改项目中所有文件的编码?我一直只是去属性-> 文本文件编码-> 其他(utf-8)。但是,它不适用于某些具有“异国情调”扩展名的文件,例如 .twig.html。无论扩展名如何,我如何对所有文件执行此操作?
这不会改变这些文件的编码,它只会改变 Eclipse 在读/写这些文件时使用的编码。对于像 *.html 这样的文件,文件实际上可以在自己的内容中声明正确的编码,让它这样做。