Home > Article > Development Tools > About using shortcut keys to organize Sublime Text2 (non-Mac)
Sublime Text2 is a very awesome and sexy code editor and has always been my favorite editor.
Sublime Text’s main features include: spell check, bookmarks, complete Python API, Goto function, instant project switching, multi-selection, multi-window and more.
It has a beautiful user interface and extraordinary features, such as mini-map, multiple selections, Python plug-ins, code snippets, and more. Fully customizable key bindings, menus and toolbars.
废话不多说了,详情查看其官网:http://www.sublimetext.com/
Lucifr translated the Mac version of Sublime Text2 shortcut keys. Based on its translation, I have compiled a list of the main shortcut keys for the Windows version:
Open/Go:
Ctrl P Goto Anything
Ctrl R Goto method
Ctrl Shift P Command prompt
Ctrl G Go to a certain line
Ctrl K B Switch sidebar
Ctrl ` python console
Ctrl N New window
Ctrl Shift ↑ Swap with the upstream
Ctrl Shift ↓ Swap with the downstream row
Edit:
Ctrl L Select the entire line (hold down - continue to select the next line)
Ctrl D Select words (hold down - continue to select the next same string)
Ctrl Shift D Copy the cursor location Whole line, insert before the line
Ctrl Shift K Delete the whole line
Ctrl KK Delete from the cursor to the end of the line
Ctrl K Backspace Delete from the cursor to the line First
Ctrl J Merge (multiple) lines (when multiple lines to be merged have been selected)
Ctrl KU Change to uppercase
Ctrl KL Change to lowercase
Ctrl / Comment (if the content has been selected, the same effect as "Ctrl Shift /")
Ctrl Shift / Block comment (comment the selected content)
Ctrl Y Undo
Tab indentation is automatically completed
Shift Tab removes indentation
Ctrl Enter inserts a line after the line where the cursor is
Ctrl Shift Enter inserts a line before the line where the cursor is
Alt . Close the current label
Ctrl Shift A Select the parent label pair at the cursor position
Ctrl Shift [Collapse code
Ctrl Shift] Expand code
Split windows/tabs - this one is cool:
Alt Shift 1 Single Column
Alt Shift 2 Dual Column
Alt Shift 5 Net Grid (4 groups)
Ctrl [1,2,3,4] Move the focus to the corresponding group
Ctrl Shift [1,2,3,4] Move the current file to the corresponding group
Alt [1,2,3…] Select the corresponding tab page
Bookmark:
Ctrl F2 Set/Clear Bookmark
F2 Next bookmark
Shift F2 Previous bookmark
For more technical articles related to sublime text, please visit the sublime tutorial column!
The above is the detailed content of About using shortcut keys to organize Sublime Text2 (non-Mac). For more information, please follow other related articles on the PHP Chinese website!