Sublime Text 3 Common shortcut keys

Source: Internet
Author: User

http://luopuya.github.io/2014/03/26/Sublime%20Text%203%20%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE/


Sublime Text 3 Powerful not only plug-ins, with shortcut keys also commendable, the following introduction of the common shortcut key summary

Sublime Text 3 key points: Multi-area editing and line editing capabilities the go to and ctrl+shift+p shortcut keys have a comprehensive management mechanism: macros, folding, multiple interfaces, and so on can use historical replication

Sublime Text system with shortcut keys in key Bindings-default,
Priority level is lower than Key Bindings-user,
(The highest priority is the shortcut key for the plug-in)
All settings are in the *.sublime-keymap file

Also, note that the Sublime Text cursor under the shortcut key may indicate
Current position , current word , current line

Note: "" indicates that the author is custom based on Eclipse, '/' denotes or, ', ' denotes overlay, ' () ' indicates that there is or no edit basic edit:

Commands Keys
Undo/redo Ctrl + z/y
Soft undo Ctrl + U
Copy/paste Ctrl + c/v
Select past Replication CTRL + K, CTRL + V
Insert new up/down and jump Ctrl (+ Shift) + Enter
Delete pre/Post words Ctrl + backspace/delete
Delete to beginning/end CTRL + K + backspace/k
Jump to pre/post words Ctrl/alt +←/→
Full complement Tab
Prompt for full complement ' alt+/
Remove Tab to specify width Shift + Tab
Convert Large/lowercase ' Ctrl + Shift + x/y
(multiple) Line/block edit:

Note: These shortcuts interpret the cursor as the current line; The block here refers to the selected text, not the statement block

Commands Keys
(go) Line/Block Comment Ctrl +/
Select row Ctrl + L
Delete rows/blocks Ctrl + X
Up/Down Swap lines ' Alt +↑/↓
Copy rows Ctrl + Shift + D
Merge downlink Ctrl + J
(GO) indent Ctrl + [/]

Note: Ctrl + X and Shift + delete Copy to clipboard code collapse while deleting:

Commands Keys
Fold to 1/2 ... Level CTRL + K, CTRL + 1/2 ...
Expand All CTRL + K, CTRL + J
Collapse/Expand Ctrl + Shift + [/]
Bookmark:
Commands Keys
(cancel) Add bookmark Ctrl + F2
Top/Next Bookmark (Shift +) F2
Delete all bookmarks Ctrl + Shift + F2
Selection
Commands Keys
Unrestricted choice of multiple places Ctrl + Left button
Select both the top/down and the same position Ctrl + Alt +↑/↓
Select multiple rows of the same location at the same time Shift + Right button
Choose the next same word Ctrl + D
Skip Current, select Next same word CTRL + K, CTRL + D
Select all the same words Ctrl + F, Alt + Enter
Select to pre/post words Ctrl/alt (+ Shift) +←/→
Select inside brackets Ctrl + Shift + M
Select to same indent Ctrl + Shift + J

Note: When (multiple) text is selected: the input symbol can be filled at all ends; Ctrl + Shift + L can select multiple/line end Find

Commands Keys
(reverse) Find (Shift +) F3
Find (All files) Ctrl (+ Shift) + F
Replace Ctrl + H
View
Commands Keys
Fullscreen F11
Do Not Disturb mode Shift + F11
Multi-column split screen Shift + Alt + 1/2/3/4
Select a Label page Alt + 1/2 ...
go to
Commands Keys
Go to File Ctrl + P
Go to line number Ctrl + G
Go to (all files) symbol Ctrl (+ Shift) + R
Go to corresponding bracket Ctrl + M
Tools
Commands Keys
Command line Ctrl + Shift + P
Compile/Run Ctrl (+ Shift) + B
(stop) Recording macros Ctrl + Q
Run macros Ctrl + Shift + Q
File, Project, preference, help

The shortcut keys in File are basically generic,
such as CTRL + O, CTRL + W, CTRL + N, CTRL + Shift + T ..., omit
The shortcut keys in the other three are not commonly used, are not common, and also omit the conclusion

The author's custom shortcut key (reference Eclispe) mentioned above

1
2
3
4
5
6 7 8 9 (16)
[  
    {"Keys": ["Alt+up"], "command": "Swap_line_up"},  
    {"Keys": ["Alt+down"], "command": "Swap_line_down"},< c19/>{"Keys": ["Shift+ctrl+y"], "command": "Lower_case"},  
    {"Keys": ["shift+ctrl+x"], "command": "Upper_case"},< c21/>{"Keys": ["alt+/"], "command": "Auto_complete"},  
    {"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}  
        ]  


Http://www.daqianduan.com/4820.html


Opening: If said notepad++ is a good code artifact, then sublime text should be called the Artifact drop brother. The biggest advantage of Sublime text is Cross-platform, Mac and Windows are perfect to use, followed by powerful plug-in support, almost omnipotent.

start using sublime Text:

Sublime text has the dev version, recommended to use, download the address, generally recommended to download a portable version (portable versions), so it is convenient to take away, also do not install, and plug-ins and the main body in a directory, portable.

Related reading:The front-end development tool recommended by the big Front end recommends lightweight development software notepad++ and its two super-strong auxiliary Plug-insSublime Text shortcut key: ctrl+shift+p: Open the Command panelctrl+p: Searching for files in a projectctrl+g: Jump to the first few linesctrl+w: Closes the currently open filectrl+shift+w: Close all open filesCtrl+shift+v: Paste and formatCtrl+d: Select words, repeat to increase the selection of the next same wordctrl+l: Select rows, repeat to increase the selection next linectrl+shift+l: Select multiple linesCtrl+shift+enter: Inserts a new row before the current linectrl+x: Delete When moving forwardctrl+m: Jump to the corresponding bracketCtrl+u: Soft undo, undo cursor Positionctrl+j: Select the label contentctrl+f: Finding Contentctrl+shift+f: Find and replacectrl+h: ReplaceCtrl+r: Go to MethodCTRL + N: New Windowctrl+k+b: Switch Side barctrl+shift+m: Select the current bracket contents, repeat the parentheses themselvesCtrl+f2: Set/Remove Tagsctrl+/: Note When moving forwardctrl+shift+/: Insert comment at current positionctrl+alt+/: Block comments, and focus to the first line, write a note for theCtrl+shift+a: Before and after selecting the current label, modify the labelF11: Full Screenshift+f11: Full screen free of disturb mode, edit current file onlyalt+f3: Select all the same wordsALT +.: Closed labelalt+shift+ Digital: Split-screen displayALT + Number: Toggle Open Nth Fileshift+ Right-drag: Multiple cursors not used to change or insert column contents The forward back key of the mouse can toggle the tab filePress CTRL, click or select, you can need to edit multiple locationsPress ctrl+shift+ up and down key, you can replace rowsSublime Text Setting: Setting User
The following are used by the Ho Zi

{
	"font_face": "Courier New",
	"font_size": 9.0,
	"Highlight_line": True,
	"Scroll_past_end": false,
	"Tab_size": 4,
	"theme": "Soda dark.sublime-theme",
	"Word_wrap": True
}
Sublime Text plugin:

It is recommended to enable package control first, the role is convenient when installing Plug-ins, Enabling methods: Menu bar –view–show Console, paste the following code and enter, and then restart the sublime. If your network is not enabled, it is not available, manual search downloads Go (say your net is also blocked.) )。

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 ())

Start installing some very useful plug-ins, ctrl+shift+p (menu –tools–command paletter), enter  install Select Install package and return, Enter or select the plug-in you need to return to install (note the small text changes in the lower left corner, will prompt installation success), install other plug-ins is this method, very fast. zencoding
have to use a front-end development of Plug-ins, Write less, show more. After installation can be used directly, the TAB key trigger, ALT+SHIFT+W is a code machine. Alignment
code alignment, such as writing several variables, select these lines, Ctrl+alt+a, wow, all. PREFIXR
write CSS to automatically add private affixes such as-webkit, Ctrl+alt+x trigger. Tag
HTML format, right-Auto-format Tags on ducument. Clipboard History
Clipboard history, showing more historical replication, ctrl+shift+v triggering. sidebarenhancements
Sidebar Right button enhancements, very practical Theme–soda
Perfect Coding theme, used all say well, Setting user add "Theme": "Soda dark.sublime-theme" GBK to UTF8
file encoding from GBK to sing UTF8, menu –file find SFTP
directly edit ftp or SFTP server files, absolute ftp cloud WordPress
strong> integration of some WordPress functions, for like me often to write WP templates and plug-ins are particularly useful for the phptidy
Collation layout php code YUI Compressor
/strong> compressed JS and CSS files

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.

Tags Index: