Button description
The shortcut keys in this article take Mac OSX as an example to illustrate that Windows users can map their own
?
: Command
?
: Control
?
: Option
?
: Shift
<arrow>
: Success →
Selection Move the cursor:
(Most of the shortcut keys for moving are included in OSX, but they are also listed here because they are associated with the selected one)
? + <arrow>
Move directly to the beginning/end of a row
? + <arrow>
One by one
Select from the cursor:
? + <arrow>
Select the next character
? + ? + <arrow>
Select the next word
? + ? + <arrow>
Select until the beginning/end of the line
? + ? + M
: Select the part in the brackets and expand outward by pressing
? + ? + J
: Select all same-level indent content (usually block-level)
After selecting an instance, for example, double-click the instance:
foo
, Available Shortcut Keys include:
? + D
: Add and select the next same instance
? + K + D
: Skip the selected instance and continue to select the next instance.
? + U
: Cancel the selection of the last selected instance.
The application scenarios of the last two items are different: continuous use? + D
When you select an instance that you do not want to select,? + U
Cancels this selection and moves the cursor back to the position of the previous selected instance.? + K + D
Cancels the last selected instance and continues to select the next instance. Note: Use it separately? + K
There is no effect, only to continue to pressD
To cancel the current selection and then select the next one.
? + L
: Extend the range of (all) selected instances to the entire row (including line breaks)
? + ? + L
: Splits the selection of currently selected block-level elements into multiple row-Level Selection
Goto anything
Press? + P
You can open a quick navigation Panel, where the navigation syntax consists of two parts: the first half is the file navigation, and then a special symbol, such:
And navigate to the file. The following special symbols are supported:
@symbol
: Query the definedVariable(Symbol), which is relatively? + F
The advantage is that you do not have to enterclass ModelAdmin
Inclass
. Shortcut Key? + R
#search
: Fuzzy search, and highlight all matching objects
:line_num
: Navigate to a line, shortcut key? + G
For example, I want../channel/models.py
Searchclass channel_salesman
This class can be directly input in the panelchann/model@sales
Then press enter to get to where I want to go. The file navigation process will be performed at the same time as you type. So as long as you see the position you want to go to appear in the first column of the navigation, you do not have to enter the file name or variable name completely.
If the navigation part of the file before the special symbol is omitted, it means that it is carried out in this file.
Sublime text 2 shortcut