Solve Pycharm Input Method support problem completely

Source: Internet
Author: User

Recently two have been, by Pycharm input method troubled, search on Google, all kinds of methods have tried, are not.

Finally, according to the official online version of the experiment, and finally achieved success.

Note: Bold for the attention of the operation

The steps are as follows:

[Email protected] bin]$ VI pycharm.sh
# ---------------------------------------------------------------------
If [-N "$PYCHARM _properties"]; Then
Ide_properties_property= "-didea.properties.file=\" $PYCHARM _properties\ ""
Fi

Main_class_name= "$PYCHARM _main_class_name"
If [-Z "$MAIN _class_name"]; Then
Main_class_name= "Com.intellij.idea.Main"
Fi

vm_options_file= "$PYCHARM _vm_options"
If [-Z "$VM _options_file"]; Then
vm_options_file= "$IDE _bin_home/pycharm$bits.vmoptions"
Fi

If [-R "$VM _options_file"]; Then
Vm_options= ' "$CAT" "$VM _options_file" | "$GREP"-V "^#.*" | "$TR" ' \ n '
vm_options= "$VM _options-djb.vmoptionsfile=\" $VM _options_file\ ""
Fi

Is_eap= "false"
If ["$IS _eap" = "true"]; Then
Os_name= ' echo $OS _type | "$TR" ' [: Upper:] ' [: Lower:] '
agent_lib= "yjpagent-$OS _name$bits"
If [-R "$IDE _bin_home/lib$agent_lib.so"]; Then
Agent= "-agentlib: $AGENT _lib=disablej2ee,disablealloc,delay=10000,sessionname=pycharm30"
Fi
Fi

Common_jvm_args= "\"-xbootclasspath/a: $IDE _home/lib/boot.jar\ "-didea.paths.selector=pycharm30 $IDE _properties_ Property "
Ide_jvm_args= "-didea.platform.prefix=python-didea.no.jre.check=true"
all_jvm_args= "$VM _options $COMMON _jvm_args $IDE _jvm_args $AGENT $REQUIRED _jvm_args"

Classpath= "$IDE _home/lib/bootstrap.jar"
Classpath= "$CLASSPATH: $IDE _home/lib/extensions.jar"
Classpath= "$CLASSPATH: $IDE _home/lib/util.jar"
Classpath= "$CLASSPATH: $IDE _home/lib/jdom.jar"
Classpath= "$CLASSPATH: $IDE _home/lib/log4j.jar"
Classpath= "$CLASSPATH: $IDE _home/lib/trove4j.jar"
Classpath= "$CLASSPATH: $IDE _home/lib/jna.jar"
If [-N "$PYCHARM _classpath"]; Then
Classpath= "$CLASSPATH: $PYCHARM _classpath"
Fi
Export CLASSPATH

Ld_library_path= "$IDE _bin_home: $LD _library_path"
Export Ld_library_path
Export GTK_IM_MODULE=FCITX
Export QT_IM_MODULE=FCITX
Export [Email PROTECTED]=FCITX


# ---------------------------------------------------------------------
# Run the IDE.
# ---------------------------------------------------------------------
While true; Do
"Pycharm.sh" 183L, 5929C written
[Email protected] bin]$ a^c
[Email protected] bin]$ ^c
[Email protected] bin]$

That's all you got.

Originally, according to the general saying:

Write in ~/BASHRC:

Export GTK_IM_MODULE=FCITX
Export QT_IM_MODULE=FCITX
Export [Email PROTECTED]=FCITX

Experiments have shown that this is a failure.

There is also a saying:

It is configured through Qt-config, but the experiment proves that it is not possible.

The official explanations are as follows:

GTK + and Qt modules

To obtain a better experience in GTK + Qt programs, install the fcitx-gtk2,fcitx-gtk3,fcitx-qt4 andfcitx-qt5 Input method modules as your need, or thefcitx-im Group to install all of them (with th E exception of FCITX-QT5 which is currently not popular).

Add the following lines to your desktop start up script files to register the input method modules and Support Xim program S.

    • Use .xprofile if you are using KDM, GDM, LightDM or SDDM.
    • Use .xinitrc if you are using StartX or Slim.
Export GTK_IM_MODULE=FCITX export QT_IM_MODULE=FCITX export [email PROTECTED]=FCITX
    • Re-login to make these environment changes effective.
Warning:Do not use .bashrcTo does this. It's used for initializing an interactive bash session. It is not a designed for non-interactive shell, nor for X session initialization. Moreover, setting environment variables in it can confuse diagnostic tools which is generally executed from command line So, these environment would appear as being set coorrectly for them even if they is not for the X session. Note:If All Qt apps has problem with FCITX, run Qtconfig (QTCONFIG-QT4), and go to the Third tab, make sure Fcitx are in the "D Efault Input Method "Combo-box.

Solve Pycharm Input Method support problem completely

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.