Sublime text HOW to use? Sublime Text 9 Usage Tips Summary

Source: Internet
Author: User
Tags sublime text
Sublime Text as the recommended code Editor in wowphp, call "artifact". Since it is an artifact, there must be something you do not know is not, the following part of the sublime text How to use the specific operation: (SUBLIMETEXT3 Chinese version of the download)

Note that the ⌘ key for Mac corresponds to the CTRL key in Windows, and the following is an example of Windows keys, which can be converted to and from each other without special instructions.

Sublime Text usage tip: Selecting the same item nearest

Win:ctrl + D mac:⌘+ D

Place the cursor over a word and press CTRL + D to select the word. Hold down CTRL and press D multiple times to select the next occurrence of the currently selected item. By holding down CTRL and then pressing D three times, three identical text will be selected.

Sublime Text Usage Tip Two: Select all occurrences of the current file

Win:alt + F3 Mac:ctrl +⌘+ G

This operation is the same as the first function, the only difference is that he will select the entire file of the specified characters, be careful.

Sublime Text Usage Tip Three: Select the parent label of the current element

Win:ctrl + SHIFT + ' mac:⌘+⇧+ K

When you need to replace the parent tag of an element (which the front-end developer will use), you need to select the element's head-and-tail tag to modify it, which is cumbersome. In sublime, you can do this very quickly.

For example, I want to replace the a link with a button, for example, you just need to follow the previous method to select the bulk of the neutron elements, and then press the shortcut key can be selected a tag, then you can replace the button label.

Need Emmet Plugin

Sublime Text Use tip four: Select the parent tag of the current element select parent element up child element

Win:ctrl + SHIFT + A Mac:ctrl + D

This shortcut will select the parent container and press it again to select the parent container ... And so on

Need Emmet Plugin

Sublime Text Use tip Five: Select the content in parentheses

Win:ctrl + SHIFT + M mac:⌘+⇧+ SPACE

This helps to select everything between parentheses. The same applies to CSS.

Sublime Text Use tips Six: Move Up or down

Win:ctrl + SHIFT +↑ or ↓mac:⌘+ CTRL +⇧ or ⇩

Sublime Text Use tip seven: Wrap lines with labels or select items

Win:alt + SHIFT + w Mac:ctrl +⇧+ W

Sublime Text Usage Tips eight: calculating mathematical expressions

Win:ctrl + SHIFT + y mac:⌘+⇧+ y

This function is very interesting, in fact, in many cases can be used, as long as there are expressions, you can quickly help you figure out the results.

Sublime Text Usage Tips nine: case conversion

Win:ctrl + k Press U (upper case) CTRL + K then press L (lowercase) mac:⌘+ k again press U (uppercase) ⌘+ K and press L (lowercase)

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.