Sublime Text 3 Common shortcut keys and package control installation

Source: Internet
Author: User



The search on the network, is now sorted down to spare:



Package control installation View under Ctrl+~


Import Urllib.request,os; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')) . Read ())

 


Some common shortcut keys that are collected:



Select Class
Ctrl+d Select the text that the cursor occupies, and the next same text will be selected when you continue.
Alt+f3 the selected text by pressing the shortcut key, you can 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 selects the entire row, and continues to select the next row, with the same effect 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. The
ctrl+m cursor moves to the end or start position within the parentheses.
Ctrl+enter Inserts a new row on 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. The
ctrl+← moves the cursor to the left and moves the cursor quickly. The
ctrl+→ moves the cursor to the right and moves the cursor quickly. The
Shift+↑ selects multiple rows upwards.
Shift+↓ to select more than a row.
Shift+← selects the text to the left.
shift+→ Select the text to the right.
ctrl+shift+← the text to the left of the unit.
ctrl+shift+→ the text to the right of the unit. The
ctrl+shift+↑ swaps the cursor at the line and the previous line of code (before inserting the row of the cursor into the previous row). The
ctrl+shift+↓ swaps the cursor at the line and the next line of code, inserting the row of the cursor after the next line.
Ctrl+alt+↑ or ctrl+alt+ mouse up to add a multiline cursor up, you can edit multiple lines at the same time.
Ctrl+alt+↓ or ctrl+alt+ the mouse to drag down to add a multiline cursor, you can edit multiple lines at the same time. The
Multiple selection (multi-selection)
Multi-select feature allows multiple cursors to be present in the page, making many tasks that would otherwise require regular expressions, advanced search, and replacement to be accomplished.



There are two ways to activate multiple selections:


Hold down CTRL and click on the page where you want the current cursor to be located.
Select a number of lines of text, and then press Shift + Ctrl + L.
By pressing Ctrl + D repeatedly, you can select all the words in the full text with the same words as the cursor's current position, and press ALT+F3 directly to choose all the same words at once.
Press the middle mouse button to make vertical selection vertically, or you can enter multiple editing states.
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. Valid only for code after the cursor (or selected)
Shift+tab indents to the left.
ctrl+[indents to the left. Valid for entire row
CTRL +] indent right. Valid for entire row
Ctrl+k+k removes code from the cursor at the end of the line. Hold down CTRL and press two times K.
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 set bookmarks, F2 toggle 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.
ESC exits the cursor multi-line selection, exits the search box, command box, 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.
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 3 Common shortcut keys and package control installation


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.