Ubuntu: Solve the problem of not being able to enter Chinese or enter a Chinese solution in PyCharm

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

3) Restart PyCharm

reference:

[linux] Pycharm cannot input Chinese or can only input one Chinese solution_Pycharm input Chinese in Linux-CSDN Blog

 The problem of not being able to input Chinese in pycharm under Linux, personal test is useful_linux pycharm is not being able to input Chinese - CSDN Blog

Guess you like

Origin blog.csdn.net/weixin_39450145/article/details/134176584