Summary of sublime Text 3

Source: Internet
Author: User
Summary of sublime Text 3

Sublime Text 3 is my favorite code editor. When dealing with code every day, you must first sharpen the tool and master the shortcut keys of the basic code editor to make it more efficient. At the beginning, it may be a little unfamiliar. It takes only a week or two to stick to and familiarize yourself with these commonly used shortcut keys. In the future, we will be able to free up the mouse, saving time and effort.

The following is a summary of incomplete shortcut keys. I hope you can release your mouse smoothly.

Select class

CTRL + dSelect the text occupied by the cursor. When you continue, the next identical text is selected.

Alt + F3Select text and press the shortcut key to select all the same text at one time for simultaneous editing. For example, quickly select and change all the same variable names and function names.

CTRL + LSelect the entire row and continue to select the next row.Shift + rotateThe effect is the same.

CTRL + Shift + LSelect multiple rows, and then press the shortcut key to insert the cursor at the end of each row to edit these rows at the same time.

CTRL + Shift + mSelect the content in the brackets (continue to select the parent brackets ). For example, you can quickly select the code in the delete function, rewrite the function body code, or rewrite the content in the brackets.

CTRL + mMove the cursor to the ending or starting position in parentheses.

CTRL + enterInsert a new row in the next row. For example, you can insert a row down quickly even if the cursor is not at the end of the row.

CTRL + Shift + enterInsert a new row in the previous row. For example, you can insert a row up quickly even if the cursor is not at the beginning of the line.

CTRL + Shift + [Select the code and press the shortcut key to collapse the code.

CTRL + Shift +]Select the code and press the shortcut key to expand the code.

CTRL + K + 0Expand All the folding code.

CTRL + ←Move the cursor to the left unit to quickly move the cursor.

CTRL + →Move the cursor to the right unit to quickly move the cursor.

Shift + rotateSelect multiple rows above.

Shift + rotateSelect multiple rows.

Shift + rotateSelect text from the left.

Shift + →Select text to the right.

CTRL + Shift + continueSelect text to the left unit.

CTRL + Shift + →Select text to the right in units.

CTRL + Shift + continueSwap the line where the cursor is located with the code of the previous line (insert the line where the cursor is located before the previous line ).

CTRL + Shift + continueSwap the line where the cursor is located with the code of the next line (insert the line where the cursor is located after the next line ).

CTRL + ALT + ↓Add a multi-row cursor up to edit multiple rows at the same time.

CTRL + ALT + ↓Add a multi-row cursor down to edit multiple rows at the same time.

 

Editing

CTRL + JMerge the selected multiple lines of code into one line. For example, combine the CSS attributes in multi-row format into one row.

CTRL + Shift + dCopy the entire row where the cursor is located and insert it to the next row.

TabIndent to the right.

Shift + TabIndent to the left.

CTRL + K + kDelete the code from the cursor to the end of the line.

CTRL + Shift + kDelete the entire row.

CTRL +/Comment row.

CTRL + Shift +/Comment multiple rows.

CTRL + K + uConverts uppercase letters.

CTRL + K + LConverts the string to lowercase.

CTRL + zUndo.

CTRL + YResume revocation.

CTRL + uSoft undo, feel andGtrl + zSame.

CTRL + F2Set bookmarks

CTRL + TThe left and right letters are exchanged.

F6Spelling of words

 

Search

CTRL + FOpen the search box at the bottom to search for keywords.

CTRL + Shift + FSearching in folders. Different from the normal Editor, sublime allows you to add Multiple folders for searching, which is slightly high-end and not researched.

CTRL + POpen the search box. Example: 1. enter the name of the file in the current project, and quickly search for the file. 2. Enter @ and keyword to search for the number of letters in the file. 3. Enter: and number, jump to the line of code in the file. 4. Enter # and keyword to find the variable name.

CTRL + GOpen the search box, automatically bring:, enter a number to jump to this line of code. For example, you can quickly locate the problem in a file with long Page code.

CTRL + ROpen the search box, automatically add @, enter the keyword, and find the function name in the file. For example, you can quickly search for a function on pages with many functions.

CTRL +:Open the search box, automatically enter #, enter the keyword, and find the variable name and attribute name in the file.

CTRL + Shift + POpen the command box. Scenario: Open the Name box and enter a keyword to call the sublime text or plug-in function. For example, use package to install the plug-in.

ESCExit the multi-line selection of the cursor, exit the search box, command box, and so on.

 

Display class

CTRL + TabSwitch the tabs of the current window in the order of file browsing.

CTRL + PagedownSwitch the tab of the current window to the left.

CTRL + PageupSwitch the tab of the current window to the right.

Alt + Shift + 1Split the window to restore the default 1 screen (non-keypad number)

Alt + Shift + 2Left/right split-2 columns

Alt + Shift + 3Left/right split-3 columns

Alt + Shift + 4Left/right split-4 columns

Alt + Shift + 5Split into four screens

Alt + Shift + 8Vertical Split-2 Screen

Alt + Shift + 9Vertical Split-3 screens

CTRL + K + BEnable/disable sidebar.

F11Full Screen mode

Shift + F11Do-not-Disturb Mode

In fact, the sulime text menu bar prompts related shortcut keys. You can check them yourself. This article mainly aims to organize hidden or unexplored shortcut keys, some practical shortcuts are inevitable for Personal organization. If you still find useful sublime text shortcuts and use chestnuts, please add them ~ The last sentence is hard to remember. You can choose to use, exercise, and familiarize yourself with related shortcuts based on your needs. In a week or two, the efficiency will be improved!


Summary of sublime Text 3

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.