Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if Sublime Text can't enter Chinese in Ubuntu?

Shulou Source: shulou.com Published: 2022-06-01 19:43:03 11月15日 Update

This article mainly shows you "Sublime Text in Ubuntu can not input Chinese how to do," the content is simple and easy to understand, organized clearly, I hope to help you solve doubts, let Xiaobian lead you to study and learn "Sublime Text in Ubuntu can not input Chinese how to do" this article bar.

Sublime

Sublime Text is a code editor (Sublime Text2 is paid software, but can be tried indefinitely), but also an advanced text editor for HTML and prose. Sublime Text was developed by programmer Jon Skinner in January 2008 and was originally designed as a Vim with rich extensions.

Sublime Text has a nice user interface and powerful features such as code thumbnails, Python plugins, code snippets, etc. Customizable key bindings, menus and toolbars are also available. The main features of Sublime Text include: spell checking, bookmarks, full Python API, Goto features, instant item switching, multi-selection, multi-window, and more. Sublime Text is a cross-platform editor that supports Windows, Linux, Mac OS X and other operating systems.

Sublime is my favorite editing tool, but under Ubuntu can not enter Chinese, which I am more uncomfortable, so in the Internet search for a long time, summed up the following simple method.

1. Download the file we need, open the terminal and type:

git clone https://github.com/lyfeyaj/sublime-text-imfix.gitcd ~/sublime-text-imfixsudo cp ./ lib/libsublime-imfix.so /opt/sublime_text/sudo cp ./ src/subl /usr/bin/

2. Create a new shell script, very simple, just one sentence.

sublime New File Input:

#!/ bin/bashLD_PRELOAD=/opt/sublime_text/libsublime-imfix.so subl

Then save the file as sublime (note: no suffix) and put it in the/home folder. Now open sublime and you can type Chinese.

The above is "Sublime Text in Ubuntu can not enter Chinese how to do" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Tags: Input Chinese functions files how to do code content articles editors tools is in learning help powerful beautiful uncomfortable operating system word bookmark advanced Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Huawei MySQL Xiaomi Docker