1. Question:
In Ubuntu22.04, when typing Chinese characters in pycharm, only the first Chinese character can be entered every time, and all subsequent characters entered become English letters. . . No matter how I adjust the input method, it doesn't work. Anyway, except for the first character, the rest of the input is in English, and there are weird cursors/underlines under the Chinese characters. . . .
2. Solve:
Reference blog【[linux] Pycharm cannot input Chinese or can only input one Chinese solution_Pycharm input Chinese in Linux-CSDN blog 】The third item [I was forced to switch to English after entering only one word], the problem was successfully solved! ! ! !
3. Specific steps:
1) Click on the PyCharm menu "Help | Edit Custom VM options…"
2) Add -Drecreate.x11.input.method=true to the last line
-Drecreate.x11.input.method=true
reference: