microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.1k stars 29.26k forks source link

When coding in java CANNOT type Chinese words #40860

Closed TolemyW closed 6 years ago

TolemyW commented 6 years ago
Extension Author (truncated) Version
code-gnu-global aus 0.2.2
xml2json bui 0.2.1
mavensmate Dav 0.15.0
githistory don 0.2.3
xml Dot 1.9.2
unicode-normalizer esp 0.0.1
git-project-manager fel 1.4.0
code-runner for 0.8.6
CppSnippets har 0.0.13
Go luk 0.6.70
vscode-fileheader mik 0.0.2
vscode-clang mit 0.2.2
mssql ms- 1.3.0
python ms- 0.9.1
cpptools ms- 0.14.5
PowerShell ms- 1.5.1
vscode-docker Pet 0.0.22
java red 0.16.0
vscode-icons rob 7.19.0
python tht 0.2.3
vscode-java-debug vsc 0.5.0
vscode-java-pack vsc 0.2.0
markdown-pdf yza 0.1.7
markdown-all-in-one yzh 0.11.2

(1 theme extensions excluded)


Steps to Reproduce:

  1. create a.java file
  2. type some chinese words like 中文
  3. after saving this change it will turn the messy
  4. change the file.autoSave from autodelay to off
  5. change the file.autoSave back

all will be right

Reproduces without extensions: Yes/No

rcjsuen commented 6 years ago

So this only applies to Java files? If you create a a.txt file, the bug doesn't occur?

Tyriar commented 6 years ago

I suspect this is related to encoding, @alexandrudima should know more.

@TolemyW what does the encoding part on the right side of the status bar say? In the below it's "UTF-8"

screen shot 2017-12-27 at 3 15 50 pm
vscodebot[bot] commented 6 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!