How to install the sublime Text 3 plugin: Install directly
Installing the sublime Text 3 plugin is convenient and can be downloaded directly from the installation package to the Packages directory (menu->preferences->packages).
install using the Package control component (typically installed using this method)
You can also install the package control component and install it directly online:
English website (https://packagecontrol.io/installation#Simple)
Package control is used to install other plug-ins, in order to facilitate the management of plug-ins, can be installed to remove other plugins
1. Press CTRL + ' or view > Show Console to bring up the console (note: There is a conflict between the shortcut keys for installing QQ Input method, Input Method property settings-Input Method management-Cancel Hotkey switch to QQ pinyin)
2. Paste the following code into the bottom command line and enter:
Import Urllib.request,os,hashlib; h = ' 2915d1851351e5ee549c20394736b442 ' + ' 8bc59f460fa1548d1514676163dafc88 '; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); by = Urllib.request.urlopen (' http://packagecontrol.io/' + pf.replace (', '%20 ')). read (); DH = hashlib.sha256 (by). Hexdigest (); Print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h)) if DH! = H Else Open (Os.pat H.join (IPP, PF), ' WB '). Write (by)
3. Restart Sublime Text 3.
4. If you see the package control item in Perferences->package settings, the installation succeeds.
If for some reason the console installation instructions does not work for you (such as has a proxy on your network), per form the following steps to manually install the package Control:
1. Click the Preferences > Browse Packages ... menu
2. Browse up a folder and then into the installed packages/ folder
3. Download Package control.sublime-package and copy it into theinstalled packages/ directory
4. Restart Sublime Text
To install the plug-in method with the package control:
First go to the package control's official website (https://packagecontrol.io/), find the plug-in you want, and then go to sublime inside to install
1. Press Ctrl+shift+p to bring up the command panel
2. Enter the install or package to bring up the Install option and enter, then select the plug-in you want to install in the list.
Sublime Text 3 Plugin:
1. Emmet
One of the most popular plugins in the editor. Emmet, formerly Zen Coding, is one of the most effective ways for web developers to improve productivity. By pressing the TAB key, Emmet can expand an abbreviation into a block of HTML and CSS code, using the Emmet (http://docs.emmet.io/cheat-sheet/) Emmet official website, Emmet the package control.
View Installed Plugins
Ctrl+shift+p the shortcut key, enter "list" in the dialog box and select "Package Control:list Packages".
Sublime will list all installed plugins. This makes it easy to understand which plugins you have installed.
Remove Plug-ins
Sometimes we need to remove the plugin we do not want, as follows: Shortcut key ctrl+shift+p, enter "Remove" in the dialog box, select "Package Control:remove Packages". Then click the plugin you want to remove in the list of plugins that appear.
Side bar Display and hide
The newly installed sublime sidebar is not displayed and is displayed in the following ways: View > Side bar > Show Open Files.
Sublime Text 3 shortcut keys
Select Class
- Ctrl+d selects the text that the cursor occupies, and continues, the next identical text is selected.
- Alt+f3 selected text Press the shortcut key, you can select all the same text at once to edit simultaneously. Give a chestnut: quickly select and change all the same variable names, function names, and so on.
- Ctrl+l Select the entire row, continue to select the next row, the effect is the same as the shift+↓ effect.
- Ctrl+shift+l Select multiple rows First, and then press the shortcut key to insert the cursor at the end of each line to edit the rows at the same time.
- Ctrl+shift+m Select the contents in parentheses (continue to select the parent bracket). Give me a chestnut: Quickly select the code in the delete function, rewrite the function body code, or rewrite the contents of the parentheses inside.
- CTRL+M cursor moves to the end or start position within the parentheses.
- Ctrl+enter inserts a new row in the next line. For a chestnut: even if the cursor is not at the end of the line, you can quickly insert a line down.
- Ctrl+shift+enter inserts a new row in the previous line. For a chestnut: even if the cursor is not at the beginning of the line, it can be inserted quickly.
- ctrl+shift+[Select the code, press the shortcut key, and collapse the code.
- ctrl+shift+] Select the code, press the shortcut key, and expand the code.
- Ctrl+k+0 expands all collapsed code.
- ctrl+← move the cursor to the left and move the cursor quickly.
- ctrl+→ move the cursor to the right and move the cursor quickly.
- Shift+↑ select multiple rows upwards.
- Shift+↓ Select multiple rows.
- shift+← Select the text to the left.
- shift+→ Select the text to the right.
- ctrl+shift+← Select the text to the left of the unit.
- ctrl+shift+→ Select the text to the right of the unit.
- Ctrl+shift+↑ swaps the cursor line and the previous line of code (before inserting the row of the cursor into the previous row).
- Ctrl+shift+↓ swaps the lines of the cursor and the next line of code (inserts the row of the cursor after the next line).
- Ctrl+alt+↑ Add a multiline cursor up, and you can edit multiple lines at the same time.
- Ctrl+alt+↓ adds a multiline cursor down to edit multiple lines at the same time.
Edit Class
- Ctrl+j Merge the selected lines of code to one line. For a chestnut: merge the CSS properties of the multiline format into one line.
- Ctrl+shift+d the entire line where the cursor is copied, and inserts it into the next row.
- Tab right indent.
- Shift+tab indents to the left.
- Ctrl+k+k removes code from the cursor at the end of the line.
- Ctrl+shift+k Delete the entire row.
- ctrl+/Comment Line.
- ctrl+shift+/comment Multiple lines.
- Ctrl+k+u convert uppercase.
- Ctrl+k+l convert lowercase.
- CTRL + Z undo.
- Ctrl+y restore Undo.
- Ctrl+u soft undo, feeling and gtrl+z the same.
- CTRL+F2 setting bookmarks
- Ctrl+t around the letter interchange.
- F6 Word detection spelling
Search class
- Ctrl+f Open the bottom search box to find keywords.
- Ctrl+shift+f in folders, unlike the normal editor is sublime allow to add multiple folders to find, slightly high-end, not researched.
- Ctrl+p Open the Search box. For a chestnut: 1. Enter the file name in the current project, quickly search for files, 2, enter @ and keywords, find the function name in the file, 3, enter: And number, jump to the line code in the file, 4, enter # and keyword, find the variable name.
- Ctrl+g Open the Search box and automatically take:, enter a number to jump to that line of code. For a chestnut: Quickly locate a file in which the page code is relatively long.
- Ctrl+r Open the Search box, automatically with @, enter keywords, find the function name in the file. For a chestnut: Quickly find a function on a page with more functions.
- CTRL +: Open the search box, automatically with #, enter keywords, find variable names in the file, attribute names, and so on.
- Ctrl+shift+p Open the Command box. Scene Chestnut: Open the Name box, enter the keyword, call sublime text or plug-in features, such as using the package installation plugin.
- ESC exits the cursor multi-line selection, exits the search box, command box, and so on.
Display class
- Ctrl+tab Toggles the tab of the current window in the order in which the files were browsed.
- Ctrl+pagedown Toggles the tab of the current window to the left.
- Ctrl+pageup Toggles the tab of the current window to the right.
- alt+shift+1 window split screen, restore the default 1 screen (non-keypad number)
- Alt+shift+2 left and right split screen-2 columns
- Alt+shift+3 left and right split screen-3 columns
- Alt+shift+4 left and right split screen-4 columns
- Alt+shift+5 4 Screen
- Alt+shift+8 Vertical Split Screen-2 screen
- Alt+shift+9 Vertical Split Screen-3 screen
- Ctrl+k+b Toggle the sidebar on/off.
- F11 Full Screen mode
- SHIFT+F11 free-to-disturb mode
Sublime Text Tips
It is generally recommended to download the portable version (portable versions), so that it is easy to take, also do not install, and plug-ins and the main body in a directory, portable.
Sublime Text Chinese-English comparison
Sublime Text 3 Usage details (continuous update)