How to change encoding of all files at once with Jetbrains IDE like WebStorm

后端 未结 4 1084
野性不改
野性不改 2021-02-20 14:43

For some unknown reason, the encoding of my files has changed without me noticing for a while.

It was UTF-8 and now is windows-1252. I have res

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-20 15:19

    If you have encoding defined in your files e.g. like this you can you use Idea's Replace in Path... functionality and modify multiple files at once.

    Even you don't have that definition, you may be able to add it to your files using the same search and replace functionality. I had to convert massive amount of ISO-8859-1 encoded file to UTF-8 and this solution worked fine.

提交回复
热议问题