Document directory
Builds2116
// Global settings "highlight_modified_tabs": true: the tab to which the file belongs is highlighted. // fold Ctrl + Shift + [collapse Code (the block where the cursor is located) CTRL + Shift +] Hide code (block where the cursor is located) Ctrl + k, t fold all element attributes ctrk + k, 0 cancel all folds Ctrl + k, CTRL + 1 ~ 9 fold 1st ~ 9th blocks (2nd most useful) // select Ctrl + Shift + J to select the current block, and include indentation (you no longer need to drag the mouse to select)
2111
// Global settings [global settings-user] "ignored_packages": ["vintage"] VI Mode // File Settings [File Settings-user] "draw_indent_guides ": true | false render indent indicator line // Hot Key Alt +. automatic end tag: Ctrl + shfit + A extend selection to tag: Ctrl + K + B switch sidebar Ctrl + B compile // Project Settings // docs: keys and folder_exclude_patterns, the matching modes are file and folder respectively. // Example: {"path": "/D/dev. workspace/foo "," folder_exclude_patterns ": [" data "," CSS "]," file_exclude_patterns ":["*. PNG "]}
Extended package Control
Package management. This is the most valuable extension of sublime. You can use the Discover package command to find the latest extensions at any time.
Run Ctrl + 'to open the console, and then enter the following line of Python code for installation:
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())
- Restart sublime
- CTRL + Shift + P open the Command Panel, enter the install query, and select the first "package control: Install package"
- Select the required package for Installation
** If the package fails to be installed, go to data/installed packages to delete the corresponding package.
The following extensions can be automatically installed using package control:
Alignment
Code alignment extension. The default value is equal to the equal sign (=), which can be customized. For example, add the colon (:) alignment separated by the middle-key value in JSON.
Git
After installation, enter the GIT query command in the Command Panel. The defect is that it is slow to use.
Sublimecodeintel
Smart tip. Supports CSS, JS, and so on.
Goto documentation
Supports JS or PHP files. Using the 'Goto documentation' command in the JS file will open the MDN to search for selected words, which is quite useful in Dom manuals.
Sublime 2 zencoding
It is used for the first time since sublime was updated to version 2. It is essential to write HTML code.
Summary of common hotkeys
CTRL + ←/↓ press the row volume screen Ctrl + Shift + D copy row Ctrl + Shift + k Delete row Ctrl + d select adjacent selected content Alt + F3 select all selected content Ctrl + Shift + enter: Change Ctrl + enter to all rows before the cursor; change Ctrl + Shift + F folder to search for Alt + Shift + W tags to enclose the selection area (after installing Zen coding, change easy to use) // Zen codingctrl + Shift +, select the tag or attribute forward Ctrl + Shift +. select the label or attribute CTRL + ALT + enter to expand the preview Ctrl + to expand the smart prompt style in the f1style label.