Sublime Text plugin and shortcut keys

Source: Internet
Author: User

Sublime TEXT3 Official Document Chinese version: http://feliving.github.io/Sublime-Text-3-Documentation/
Sublime Text plugin download website: https://sublime.wbond.net/
Sublime Text Install package control:https://sublime.wbond.net/installation
Very good reference document: Https://github.com/jikeytang/sublime-text

2. Install the package Control:
Input Ctrl + ' or View→show console: input
If not clear, refer to: https://sublime.wbond.net/installation
Soda Theme: https://github.com/buymeasoda/soda-theme/

Edit
Shortcut keys
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+h: Replace
Ctrl+i Incremental lookup, Ctrl+shif+i reverse incremental lookup.
F3:find_next, Ctrl+f3:find_undex, Shift+f3:find_prev

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 Jump switch, auto Band:, enter a number to jump to the line of code
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 +: Search for variables, automatically with #, enter keywords, find variable names, attribute names, etc. in the file.

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.

Multi-line editing

Ctrl+shift+l First select multiple rows by Ctrl+l or shift+↓, and then press this shortcut key to insert the cursor at the end of each line to edit the lines at the same time, moving all the lines of the cursor. (belongs to multi-line edit)
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. (may be occupied under win, please follow this tutorial to remove the occupation of http://jingyan.baidu.com/article/8065f87fdaaa0a23312498fc.html)
CTRL keeps holding down, then the mouse cursor points, you can add multiple cursors simultaneously edit
Select Class
ALT+F3 (similar to alt+shift+r rename refactoring in Eclipse) select text to press the shortcut key to select all the same text at once for simultaneous editing. 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.
Shift+↑ Select multiple rows and shift+↓ down to select multiple rows.

Ctrl+shift+↑ Exchange Line, ctrl+shift+↓
Ctrl+enter inserts a new row in the next line. Ctrl+shift+enter inserts a new row in the previous line.

ctrl+shift+[Select the code First, press this shortcut, and collapse the code.
ctrl+shift+] First select the code, press this shortcut key, expand the code.
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+shift+← Select the text to the left of the unit. (shift+← selects the text to the left.) ), ctrl+shift+→ the text to the right of the unit. (shift+→ the text to the right.) )

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.
Ctrl+d (defined by me as Ctrl+alt+d) selects the text occupied by the cursor, and continues with the next same text selected. (By default, Ctrl+d is my custom to delete one row)

Edit Class
Home/end moved to beginning/end, I have been customized (Ctrl+k,ctrl+left and Ctrl+k,ctrl+right)
Ctrl+home/end moved to the beginning/end of the text.

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 If you have selected the text, it will copy your selected items. Otherwise, placing the cursor on the line will copy the entire row. (Ctrl+alt+down in Eclipse)
ctrl+/Comment Line.
ctrl+shift+/comment Multiple lines.
Ctrl+k,ctrl+u convert uppercase.
Ctrl+k,ctrl+l convert lowercase.
CTRL+F2 setting bookmarks
CTRL + Z undo.
Ctrl+y restore Undo.
Ctrl+u soft undo, feeling and gtrl+z the same.
Ctrl+k+k removes code from the cursor at the end of the line. (Has been abandoned by me)
Ctrl+shift+k Delete the entire row. (I have been customized as Ctrl+d)
Ctrl+t around the letter interchange.
F6 Word detection spelling

Display class
Ctrl+w closing files
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.
Ctrl+up/down: Rolling screen
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 + Digital, can switch between split-screen
Ctrl+k+b Toggle the sidebar on/off.
F11 Full Screen mode
SHIFT+F11 free-to-disturb mode

Edit
Custom shortcut key recommendations
First, the multi-line editing function shortcut: Ctrl + mouse Click Select to edit multiple lines at the same time.
CTRL + Shift + p to bring up the panel
Then you can define the following shortcut keys, the eclipse style

[

{"Keys": ["alt+/"], "command": "Auto_complete"},//Smart Tips
{"Keys": ["alt+/"], "command": "Replace_completion_with_auto_complete", "context":
[
{"Key": "Last_command", "operator": "Equal", "operand": "Insert_best_completion"},
{"Key": "Auto_complete_visible", "operator": "Equal", "operand": false},
{"Key": "Setting.tab_completion", "operator": "Equal", "operand": true}
]
},
{"Keys": ["Ctrl+alt+d"], "command": "Find_under_expand"},
{"Keys": ["ctrl+shift+f"], "command": "Reindent", "args": {"Single_line": false}},//code formatting

{"Keys": ["Ctrl+d"], "command": "Run_macro_file", "args": {"file": "Packages/default/delete Line.sublime-macro"}},// Delete a row
{"Keys": ["Ctrl+l"], "command": "Expand_selection", "args": {"to": "Line"}},

{"Keys": ["Ctrl+k", "Ctrl+left"], "command": "Move_to", "args": {"to": "Bol", "Extend": false},
{"Keys": ["Ctrl+k", "Ctrl+right"], "command": "Move_to", "args": {"to": "EOL", "Extend": false}}


] Edit
Plugin recommendations
Imesupport: Input method and other support
Bookmarks: Bookmark plugin.
Alignment Alignment
Autofilename. Auto-complete file (directory) name
Brackethighlighter Highlight brackets/quotation marks
Colorhighlighter background display 16 binary colors
ColorPicker
Docblockr Generating a comment template
Sublimecodeintel Smart Code Hints
Ctags
Sublimelinter Code Check
Html5,htmlattributes
Terminal
Jsonlint
Php
JavaScript completions Important
Jquery
Bootstrap 3 Snippets
Python 3
Less, LESSCSS code hints, scss
Markdownpreviewer–markdown Real-time preview plugin
Freemarker:freemarker Template Language Assistance
Emmet (Ex-zen Coding)

Sublime Text plugin and shortcut keys

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.