Sublime text 2 shortcut

Source: Internet
Author: User
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? + DWhen you select an instance that you do not want to select,? + UCancels this selection and moves the cursor back to the position of the previous selected instance.? + K + DCancels the last selected instance and continues to select the next instance. Note: Use it separately? + KThere is no effect, only to continue to pressDTo 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? + PYou 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? + FThe advantage is that you do not have to enterclass ModelAdminInclass. 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.pySearchclass channel_salesmanThis 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

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.