Intellij Idea中如何删除BOM
我想从我的
中删除咬合顺序面具 Intellij IDEA 中的 UTF-8 文件,我该怎么做?
问题是,如果我尝试通过其他编辑器(例如 Akelpad)来完成此操作,
当我稍后在 IDEA 中修改文件时,它会以某种方式记住 BOM
存在并将其再次添加到我的文件中(((
I'd like to remove Bite Order Masks from my
UTF-8 files in Intellij IDEA, how can I do this?
The problem is that if I'm trying to do it via other editors (e.g. Akelpad),
when I modify the file later in IDEA it somehow remembers that BOM
was present and adds it to my file again (((
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在 PHPStorm 8 上测试:
右键单击项目树中的文件,
单击“删除 BOM”
(不确定基础平台上是否存在,评论会有所帮助)
Tested on PHPStorm 8:
Right click on a file in the project tree,
click on "Remove BOM"
(Not sure if it exists on the base platform, comments will be helpful)
IntelliJ IDEA 中没有从 UTF-8 文件中删除 BOM 的操作。有一个错误,BOM 被删除,但它很早以前就被修复了。
当您从外部删除 BOM 时,请确保文件与编辑器同步,尝试
File
|同步
。如果 IntelliJ IDEA 仍然认为此文件具有 BOM,请提出问题并提供重现步骤。
There is no such action to remove BOM from UTF-8 files in IntelliJ IDEA. There was a bug that BOM is removed, but it was fixed a long time ago.
When you remove BOM externally, make sure the file is synchronized with editor, try
File
|Synchronize
.If IntelliJ IDEA still thinks that this file has BOM, please file an issue with the steps to reproduce.
Intellij Idea 有一个选项,文件 -> 删除 Bom,但它看起来效果不太好,我收到“此文件具有强制 Bom”错误
以下提示对我有用
我引用的链接如下,可以与Intellij Idea文件->文件编码->结合使用重新加载/转换为 UTF-8
IDE 支持:从文件中删除 BOM - 如何操作?
Intellij Idea has an option, File->Remove Bom, but it looks doesn't work very well, I got "This file has mandatory Bom" error
The following tips work for me
I referenced link below, can be combined with Intellij Idea File->File Encoding-> Reload/Convert to UTF-8
IDEs Support: Remove BOM from file - how ?
我有同样的问题。
我发现了这个问题并且“对我有用”修复:
http://youtrack.jetbrains.com/issue/IDEA-86880#comment =27-386505
希望有帮助
I had the same Problem.
I found this issue and a "works for me"-fix:
http://youtrack.jetbrains.com/issue/IDEA-86880#comment=27-386505
Hope it helps