这其实是编码问题 和字体什么的没有关系,在VSCode中默认是用UTF-8编码方式打开文件,只要你的文件是这个编码就能正常打开
如果不是,不进行设置VSCode是不会自动切换编码方式打开
手动可以Reopen with encoding/Save with encoding 选择打开
也可以修改设置使其自动切换打开:
打开File->Preferences->Usersettings
在右侧settings.json中添加下面内容
"files.encoding": "shiftjis",
"files.encoding": "eucjp",
"files.encoding": "big5hkscs",
"files.encoding": "Big5",
"files.encoding": "GB18030",
"files.encoding": "GBK",
"files.encoding": "utf8",
"files.encoding": "GB2312",
这样支持这样几种编码方式,最下面的就是默认的, ...

相关文章:

  • 2021-11-14
  • 2021-05-14
  • 2021-08-07
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-06-28
猜你喜欢
  • 2021-06-11
  • 2021-10-04
  • 2022-12-23
  • 2021-05-09
  • 2022-12-23
  • 2021-05-19
  • 2021-06-18
相关资源
相似解决方案