


How to use Sublime Text? Summary of 9 tips for using Sublime Text
Sublime Text As the recommended code editor in WOWPHP, it is called an "artifact". Since it is an artifact, there must be something you don’t know. The following part explains the specific operations of how to use Sublime Text: (SublimeText3 Chinese version download)
Note that the ⌘ key on Mac corresponds to the ctrl key in Windows. The following content uses the Windows keys as an example. Unless otherwise specified, they can be used interchangeably.
Sublime Text Tip 1: Select the same item nearby
Win: CTRL D Mac: ⌘ D
Place the cursor on a word and press Pressing CTRL D will select the word. Holding down CTRL and pressing D multiple times will select the next occurrence of the currently selected item. By holding CTRL and pressing D three times, three identical pieces of text will be selected.
Sublime Text Tip 2: Select all matching items in the current file
Win: ALT F3 Mac: CTRL ⌘ G
This operation is the same as The first function is the same, the only difference is that it will select the specified characters in the entire file, so be careful.
Sublime Text Tip 3: Select the parent tag of the current element
Win: CTRL SHIFT ' Mac: ⌘ ⇧ K
When you need to replace the parent tag of an element (which will be used by front-end developers), you need to select the first and last tags of the element to modify, which is very troublesome. In sublime, you can do this very quickly.
For example, if I want to replace the a link with a button, as shown below, I only need to select a batch of neutron elements according to the method mentioned above, and then press the shortcut key to select the a label, and then replace it with the button label. .
Requires Emmet plugin
Sublime Text Tip 4: Select the parent tag of the current element and select the parent element upward from the child element
Win: CTRL SHIFT A Mac: CTRL D
This shortcut key will select the parent container. Pressing it again will select the parent container of the parent container...and so on.
Requires Emmet plug-in
Sublime Text Tip 5: Select the content in brackets
Win: CTRL SHIFT M Mac: ⌘ ⇧ SPACE
This helps select everything between brackets. The same applies to CSS.
Sublime Text Tip 6: Move up or down a line
Win: CTRL SHIFT ↑ or ↓ Mac: ⌘ CTRL ⇧ Or ⇩
##Sublime Text Tip 7: Wrap rows or selected items with labels
Win: ALT SHIFT W Mac: CTRL ⇧ WSublime Text Tip 8: Calculate mathematical expressions
Win: CTRL SHIFT Y Mac: ⌘ ⇧ YThis function is very interesting. In fact, it can be used in many situations. As long as there is an expression, it can quickly help you calculate the result.Sublime Text Tip 9: Case conversion
Win: CTRL K and then press U (uppercase) CTRL K and then press L (lowercase) Mac: ⌘ K and then U (uppercase) ⌘ K and then L (lowercase)The above is the detailed content of How to use Sublime Text? Summary of 9 tips for using Sublime Text. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Below, the sublime tutorial column will introduce to you how to turn off automatic updates in Sublime Text. I hope it will be helpful to friends in need!

Development tools and debugging skills for PHP and CGI: Improving development efficiency Summary: PHP and CGI are two commonly used web development languages. In order to improve development efficiency, developers need to master some special development tools and debugging skills. This article will introduce several commonly used PHP and CGI development tools, as well as some debugging techniques to help developers develop and debug more efficiently. 1. Development tool SublimeTextSublimeText is a powerful text editor that supports PHP and C

SublimeText is a very popular code editor that is widely used by developers and code writers. In the following article, we will discuss the reasons and solutions for why SublimeText cannot run PHP.

PHP is a popular server-side scripting language that is widely used for web development. In order to write efficient and streamlined PHP code, programmers need to use an excellent code editor. This article will introduce some common code editors in PHP programming. SublimeTextSublimeText is probably one of the most popular code editors. Its flexibility and ease of use make it the editor of choice for many developers. Key features of SublimeText include: High degree of customization

In current web development, PHP has become a very popular back-end programming language. However, when developing PHP, choosing high-quality editors and development tools can greatly improve development efficiency and code quality. This article will introduce some common PHP editors and development tools. PHPStormPHPStorm is an integrated development environment (IDE) launched by JetBrains. It provides a series of functions such as powerful PHP development support, code analysis, debugging, and automated testing, and supports

Introduction to the recommended configuration for using SublimeText for C/C++ programming on Linux: SublimeText is a lightweight, powerful and highly customizable text editor. On Linux platforms, using SublimeText for C/C++ programming is a common choice. This article will introduce some recommended configurations and plug-ins to help improve programming efficiency and development experience. Install SublimeText: First, you need to install SublimeText from the SublimeText official website

How to build PHP with sublime: 1. Open sublime, click "Ctrl+Shift+P", and then enter install; 2. Configure SublimeLinter; 3. Modify the path; 4. Configure the PHP compilation system; 5. Add "{ "cmd": ["php","$file"],"file_regex": "php$","selector":"source.php"}" is enough.

PHP is a popular programming language that is widely used to create dynamic websites, applications, and a range of internet technologies. PHP has a large number of built-in functions to help programmers work more efficiently while writing code. If you use SublimeText as your editor, there are some plugins and tricks you can use to make your PHP functions easier to edit and use. In this article, I will introduce some useful SublimeText features that can help you make better use of PHP functions. 1.from
