1. Enter
sudo add-apt-repository ppa:webupd8team/sublime-text-3
Add the sublime file warehouse 2. Input
sudo apt-get update
With the new available list 3. Input
sudo apt-get install Sublime-text-installer
Install sublime at this time SUBLIME-TEXT3 installation is complete, of course, want to use the comfort also need to install plug-in open sublime click on the menu bar preference the package Control to install plug-ins in the popup package Controller: After entering the installation of the add-in to install the interface below recommended several more useful plugins: 1. Emmet (formerly known as zen Coding) a quick way to write Html/css Note: Installing Emmet will also automatically install its dependent PyV8 binary library, installing PYV8 libraries for a longer period of time, You can see the installation process status 2 in the lower left corner of sublime. HTML5 supports the HMTL5 specification for plug-in package 3. jquery supports the jquery specification plug-in package 4. javascript-api-completions supports JavaScript, jquery, Twitter bootstrap framework, HTML5 Tag Property Hint plugin, is a few support sublime text 3 suffix hint plug-in, HTML5 tag hint Sublime text 3 comes with, but the jquery hint is very useful, you can also set the language to prompt. 5. Jsformat JS code format plugin. (Usage: Use shortcut key ctrl+alt+f) 6. sublimelinter a plug-in that supports lint syntax, you can highlight the line of code that Linter think is wrong, and also support highlighting some special comments, such as "TODO", This can be quickly positioned. (IntelliJ idea's Todo function is very good, this plug-in, although not comparable, but also enough) 7. Alignment code alignment, such as write a few variables, select these lines, Ctrl+alt+a, wow, qi. 8. Doc? Blockr Comment Plugin to generate beautiful annotations. Standard annotations, including function names, parameters, return values, and so on, are displayed in multiple lines, eliminating manual writing. 9. Ctags function jump, on my computer is ALT + click on the function name, will jump to the corresponding function 10. sidebarenhancements Sidebar Right-click function enhancement, very practical plug-in installation, began to compile code, the results are hard to find incredibly can not input Chinese, as a Chinese, can not input Chinese can not, unofficial solution see:
http://www.jianshu.com/p/bf05fb3a4709
I use the first method to solve this problem, 1. Download the files we need, open the terminal, enter:
git clone https://github.com/lyfeyaj/sublime-text-imfix.git
2. Move the SUBL to/usr/bin/and move the sublime-imfix.so to the/opt/sublime_text/(sublime installation directory) terminal input:
CD ~/sublime-text-imfix sudo cp./lib/libsublime-imfix.so/opt/sublime_text/sudo CP./src/subl/usr/bin/
3. Use the SUBL command to try to start the sublime, if the successful start, you should be able to input Chinese. Terminal input:
Ld_preload=./libsublime-imfix.so Subl
4. But this can only be started with the command line above to enter Chinese, we need a simpler way, I choose to create a new shell script, very simple, just a word. Sublime New file Input:
#!/bin/bash ld_preload=/opt/sublime_text/libsublime-imfix.so Subl
Then save the file as sublime (note: no suffix) and put it in the/home folder. 5. So far, all the work has been done. To start, direct terminal input: Bash ~/sublime, you can start sublime, and can input Chinese. 6. If you do not need to enter Chinese, just open it in the previous way. The purpose of the script file is to easily open the sublime that can input Chinese. Vaayne Link: http://www.jianshu.com/p/bf05fb3a4709 Source: Pinterest
Install Sublime-text3 under Ubuntu