兵兵有你

人品好,气质差.丢了工作就回家...

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  1. 打开settings->Editor->File Encodings,设置Global EncodingProject Encoding还有Default encoding for properties FilesUTF-8
  2. 找到idea安装目录下bin文件夹下的idea.exe.vmoptionsidea64.exe.vmoptions,在末尾添加-Dfile.encoding=UTF-8
  3. 打开Run/Debug Configurations,在VM options后添加-Dfile.encoding=UTF-8

    **若以上方法还是不行则使用最后一种方式,这个应该是idea为了方便用户自定义VM Options添加的功能,应该是覆盖了2选项的设置,所以2选项可以不设置了

  4. idea内Help->Edit Custom VM Options中添加-Dfile.encoding=utf-8

本人idea2019.3升级后导致配置文件丢失 1,3,4方法设置后就恢复正常了

posted on 2021-03-13 23:21  greatbing  阅读(95)  评论(0编辑  收藏  举报