Sublime text using shortcut keys

Source: Internet
Author: User


Gyfnice
Links: https://www.zhihu.com/question/24896283/answer/34327939
Source: Know
Copyright belongs to the author, please contact the author for authorization.


Code Snippets



Commonly used here can be found, there are other needs to match it:



Javascript/snippets/sublime/javascript at Sublime-snippets Gyfnice/javascript GitHub



Summarize:



There are some shortcuts here. Individual combat abilities may not be strong, but if you can use them flexibly, they can play a big role.



You may feel that the shortcut key is a bit more, can not remember, but as long as stick to use, turn it into a habit, your development efficiency will certainly be improved!


Hope to be helpful to everyone, in doubt can be a separate private messages.

End: a list of shortcut keys under windows
Alt + R: enable regular expression function
Alt + Enter: Select all after finding the matching target
Ctrl + R: Go to method (? R under mac)
Ctrl + M: jump to the corresponding bracket
Press Ctrl + Shift + Up and Down keys to replace the line
Ctrl + D: select a word, repeat to increase the selection of the next same word
Ctrl + L: Select the row, repeat to increase the selection of the next row
Ctrl + Shift + P: Open the command panel
Ctrl + P: Search for files in the project (? P under mac), type in:
[email protected] You can locate the corresponding method (auto) in the corresponding folder (admin.html).
Ctrl + G: jump to the first few lines
Ctrl + W: Close the currently open file
Ctrl + Shift + W: Close all open files
Ctrl + Shift + V: paste and format
Ctrl + Shift + L: select multiple lines
Ctrl + Shift + Enter: Insert a new line before the current line
Ctrl + X: delete the current line
Ctrl + U: soft undo, undo cursor position
Ctrl + J: select label content
Ctrl + F: Find content
Ctrl + Shift + F: Find and replace
Ctrl + H: Replace
Ctrl + N: New window
Ctrl + K + B: switch the sidebar
Ctrl + Shift + M: select the current bracket content, repeat the bracket itself
Ctrl + F2: set / delete mark
Ctrl + /: Comment the current line
Ctrl + Shift + /: Insert a comment at the current position
Ctrl + Alt + /: block comment, and Focus to the first line, write notes for explanation
Ctrl + Shift + A: Before and after selecting the current label, modify the label
F11: full screen
Shift + F11: Full-screen DND mode, only edit the current file
Alt + F3: Select all the same words
Alt + .: closed label
Alt + Shift + number: split screen display
Alt + number: switch to open the Nth file
Shift + right-drag: the cursor is too many, used to change or insert the contents of the column
Tabs can be switched by the mouse forward and back buttons
Press Ctrl, click or select in sequence, you can edit multiple locations
Ctrl + shift + D: backup multiple current lines
Ctrl + shift + T: restore the closed label

Editing
Keypress Command
Ctrl + X Delete line
Ctrl +? Insert line after
Ctrl +? +? Insert line before
Ctrl +? + ↑ Move line / selection up
Ctrl +? + ↓ Move line / selection down
Ctrl + L Select line-Repeat to select next lines
Ctrl + D Select word-Repeat select others occurrences
Ctrl + M Jump to closing parentheses Repeat to jump to opening parentheses
Ctrl +? + M Select all contents of the current parentheses
Ctrl + KK Delete from cursor to end of line
Ctrl + K +? Delete from cursor to start of line
Ctrl +] Indent current line (s)
Ctrl + [Un-indent current line (s)
Ctrl +? + D Duplicate line (s)
Ctrl + J Join line below to the end of the current line
Ctrl + / Comment / un-comment current line
Ctrl +? + / Block comment current selection
Ctrl + Y Redo, or repeat last keyboard shortcut command
Ctrl +? + V Paste and indent correctly
Ctrl + Space Select next auto-complete suggestion
Ctrl + U soft undo; jumps to your last change before undoing change when repeated
Windows
Ctrl + Alt + Up Column selection up
Ctrl + Alt + Down Column selection down
Linux
Alt +? + Up Column selection up
Alt +? + Down Column selection up
Navigation / Goto Anywhere
Keypress Command
Ctrl + P Quick-open files by name
Ctrl + R Goto symbol
Ctrl +; Goto word in current file
Ctrl + G Goto line in current file
General
Keypress Command
Ctrl +? + P Command prompt
Ctrl + KB Toggle side bar
Ctrl +? + Alt + P Show scope in status bar
Find / Replace
Keypress Command
Ctrl + F Find
Ctrl + H Replace
Ctrl +? + F Find in files
Tabs
Keypress Command
Ctrl +? + T Open last closed tab
Ctrl + PgUp Cycle up through tabs
Ctrl + PgDn Cycle down through tabs
Ctrl +? Find in files
Alt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabs
Split window
Keypress Command
Alt +? + 2 Split view into two columns
Alt +? + 1 Revert view to single column
Alt +? + 5 Set view to grid (4 groups)
Ctrl + [NUM] Jump to group where num is 1-4
Ctrl +? + [NUM] Move file to specified group where num is 1-4
Bookmarks
Keypress Command
Ctrl + F2 Toggle bookmark
F2 Next bookmark
? + F2 Previous bookmark
Ctrl +? + F2 Clear bookmarks
Text manipulation
Keypress Command
Ctrl + KU Transform to Uppercase
Ctrl + KL Transform to Lowercase
gyfnice
Link: https://www.zhihu.com/question/24896283/answer/34327939
Source: Zhihu
The copyright belongs to the author, please contact the author for authorization.

Alt + R: Turn on the regular expression function Alt + Enter: Select all after finding the matching target Ctrl + R: Go to the method (under mac? R) Ctrl + M: Jump to the corresponding bracket Press Ctrl + Shift + up and down keys to replace the line Ctrl + D: select a word, repeat to increase and select the next same word Ctrl + L: select a line, repeat to increase and select the next line in sequence Next? P), enter: [email protected] You can locate the corresponding method (auto) under the corresponding folder (admin.html). Ctrl + G: Jump to the first few lines Ctrl + W: Close the currently open file Ctrl + Shift + W: Close all open files Ctrl + Shift + V: Paste and format Ctrl + Shift + L: Select multiple lines Ctrl + Shift + Enter: insert a new line before the current line Ctrl + X: delete the current line Ctrl + U: soft undo, undo cursor position Ctrl + J: select label content Ctrl + F: find content Ctrl + Shift + F: find and replace Ctrl + H: replace Ctrl + N: create a new window Ctrl + K + B: switch sidebar Ctrl + Shift + M: select the current bracket content, select the bracket itself repeatedly Ctrl + F2: set / delete mark Ctrl + /: comment the current line Ctrl + Shift + /: Insert a comment at the current position Ctrl + Alt + /: block comment, and Focus to the first line, write the comment description Ctrl + Shift + A: select before and after the current label, modify the label F11: full screen Shift + F11: Do not disturb in full screen mode, only edit the current file Alt + F3: select all the same words Alt + .: close the label Alt + Shift + number: split screen display Alt + number: switch to open the Nth file Shift + right-click drag: the cursor is too many To change or insert the contents of the column To switch Tab files, press Ctrl, click or select one by one, multiple positions that need to be edited Ctrl + shift + D: backup multiple current lines Ctrl + shift + T: restore closed labels Editing Keypress Command Ctrl + X Delete line Ctrl +? Insert line after Ctrl +? +? Insert line before Ctrl +? + ↑ Move line / selection up Ctrl +? + ↓ Move line / selection down Ctrl + L Select line-Repeat to select next lines Ctrl + D Select word- Repeat select others occurrences Ctrl + M Jump to closing parentheses Repeat to jump to opening parentheses Ctrl +? + M Select all contents of the current parentheses Ctrl + KK Delete from cursor to end of line Ctrl + K +? Delete from cursor to start of line Ctrl +] Indent current line (s) Ctrl + [Un-indent current line (s) Ctrl +? + D Duplicate line (s) Ctrl + J Join line below to the end of the current line Ctrl + / Comment / un -comment current line Ctrl +? + / Block comment current selection Ctrl + Y Redo, or repeat last keyboard shortcut command Ctrl +? + V Paste and i ndent correctly Ctrl + Space Select next auto-complete suggestion Ctrl + U soft undo; jumps to your last change before undoing change when repeat ed Windows Ctrl + Alt + Up Column selection up Ctrl + Alt + Down Column selection down Linux Alt +? + Up Column selection up Alt +? + Down Column selection up Navigation / Goto Anywhere Keypress Command Ctrl + P Quick-open files by name Ctrl + R Goto symbol Ctrl +; Goto word in current file Ctrl + G Goto line in current file General Keypress Command Ctrl +? + P Command prompt Ctrl + KB Toggle side bar Ctrl +? + Alt + P Show scope in status bar Find / Replace Keypress Command Ctrl + F Find Ctrl + H Replace Ctrl +? + F Find in files Tabs Keypress Command Ctrl +? + T Open last closed tab Ctrl + PgUp Cycle up through tabs Ctrl + PgDn Cycle down through tabs Ctrl +? Find in files Alt + [NUM] Switch to tab number [NUM] where [NUM] <= number of tabs Split window Keypress Command Alt +? + 2 Split view into two columns Alt +? + 1 Revert view to single column Alt +? + 5 Set view to grid (4 groups) Ctrl + [NUM] Jump to group where num is 1-4 Ctrl +? + [NUM] Move file to specified group wh ere num is 1-4 Bookmarks Keypress Command Ctrl + F2 Toggle bookmark F2 Next bookmark? + F2 Previous bookmark Ctrl +? + F2 Clear bookmarks Text manipulation Keypress Command Ctrl + KU Transform to Uppercase Ctrl + KL Transform to Lowercase
Sublime text using 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.