1. Download Sublime Text2
Official website: http://www.sublimetext.com
2. Install Sublime Text2
Unzip to use
$ sudo tar -jxvf Sublime \ Text \ 2.0.2 \ x64.tar.bz2
or
sudo add-apt-repository ppa: webupd8team / sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text-2
If you need to use the command directly in the terminal, add a link in use / bin or / use / local / bin
ln -s PATH / TO / Sublime \ Text \ 2 / sublime_text / usr / bin / subl
In the future, enter subl in the terminal to open sublime text
Registration code (only for personal non-commercial applications):
----- BEGIN LICENSE ------
Alexander
Single User License
EA7E-814345
51F47F09 4EAB1285 7827EFF0 8B1207DC
A76A6EA3 E1A1CA7A DC1F2703 14,897,784
8EDC1C82 3F2A58B9 1C0C8B24 67686432
281245B3 6233DE5C ADC5C2F9 61FB8A04
171B63EF 86BA423F 6AC884FD 3273A7AA
5F50A6DB CE7859AE D62D2B37 AEEDD8C2
078A8A20 70EEA791 84F48C1E 8ABA7DEB
0B3907C0 C9A3523B 0091A045 6F67AED8
------ END LICENSE ------
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
5CDB7036 E56DE1C0 EFCC0840 650CD3A6
B98FC99C 8FAC73EE D2B95564 DF450523
------ END LICENSE ------
3. Configuration
Click preferences-setting user, personal settings are as follows:
//font size
"font_size": 13.0,
// Font type
"font_face": "Consolas",
// Set the spacing of each line to the top in pixels, the effect is equivalent to the line spacing
"line_padding_top": 2,
// Set the spacing of each line to the bottom in pixels, the effect is equivalent to the line spacing
"line_padding_bottom": 2,
// Highlight both ends of the tag where the cursor is located under html and xml, affecting HTML, XML, CSS etc.
"match_tags": true,
// Whether to display the code folding button
"fold_buttons": true,
// code hint
"auto_complete": true,
// Default encoding format
"default_encoding": "UTF-8",
// Folder folder animation on the left
"tree_animation_enabled": true,
// Delete the plugin you want to ignore
"ignored_packages":
[
"Vintage",
"YUI Compressor"
]
4 Install Package Control
Package Control is a good tool for managing plug-ins. It can be used to install, delete, and disable corresponding plug-ins. Common plug-ins can be found on it.
Its source address https://github.com/wbond/package_control_channel
Method one: After downloading, copy to ~ / .config / sublime-text-3 / Packages / directory and name it Package Control.
Or git clone
cd ~ / .config / sublime-text-2 / Packages /
git clone https://github.com/wbond/package_control_channel.git Package \ Control
Method 2: Open sublime_text and press the shortcut key ctrl + `(the key under Esc), enter the following information in the pop-up command input window
import urllib2, os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path (); os.makedirs (ipp) if not os.path.exists (ipp) else None; open (os.path.join (ipp, pf), 'wb') .write (urllib2.urlopen ('http://sublime.wbond.net/'+pf.replace (' ','% 20 ')). read ())
5 Shortcut keys for reference (http://blog.csdn.net/cywosp/article/details/31791881)
1. F11 and Shift + F11 enter full-screen DND mode
2. Ctrl + L: Select the entire line, press and hold to continue to select the next line
3. Ctrl + KK: Delete from the cursor to the end of the entire line
4. Ctrl + Shift + D: Copy the entire line where the cursor is, and insert before the line
5. Ctrl + J: merge lines (when multiple lines that need to be merged have been selected), it can be understood as a non-wrap mode, which will automatically wrap after encountering the editor border
6. Ctrl + D: Select a word, (hold down-continue to select the next same string)
7. Ctrl + /: Comment the entire line and switch back and forth. Submlie Text can automatically determine the file type. Select the entire paragraph or comment the entire paragraph.
8. Ctrl + Shift + /: Comment. Select the entire paragraph, you can also comment the entire paragraph, when a single line, do not comment the line, but add the comment information of the line, such as </ ul> <!-->
9. Alt + .: Close the current label
10. Ctrl + Shift + [: folding code
11. Ctrl + Shift +]: Expand code
12, Shift + table: indent to the left, Tab indent to the right
Sublime text 2 ubuntu installation and plugin management
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.