详细

  文件编码确定是UTF-8,项目是以前eclipse复制过来的,在普通位置输入中文正常,在注释中编辑文字乱码,乱码表现形式为显示了其它看不懂的中文,或是直接显示空格,不同于一般的符号样式乱码。

  网上的解决不到我的问题。

解决

最终是修改下面的这个好了。

IntelliJ IDEA 2019.3 中文乱码
在此前操作过的步骤:

  • Editor > File Encodings 统一了编码。
  • idea64.exe.vmoptions 添加了编码设置(-Dfile.encoding=UTF-8)
  • Editor > Color Scheme > Color Scheme Font 取消选择项 “Use color scheme font instead of the default(…)”

相关文章:

  • 2022-01-14
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-10-31
  • 2021-10-05
猜你喜欢
  • 2021-10-27
  • 2021-05-31
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案