Home Backend Development PHP Tutorial How to use Sublime Text? Summary of 9 tips for using Sublime Text

How to use Sublime Text? Summary of 9 tips for using Sublime Text

Jul 19, 2018 pm 11:23 PM
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)

How to use Sublime Text? Summary of 9 tips for using Sublime Text

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.

How to use Sublime Text? Summary of 9 tips for using Sublime Text

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.

How to use Sublime Text? Summary of 9 tips for using Sublime Text

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

How to use Sublime Text? Summary of 9 tips for using Sublime Text

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

How to use Sublime Text? Summary of 9 tips for using Sublime Text

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.

How to use Sublime Text? Summary of 9 tips for using Sublime Text

Sublime Text Tip 6: Move up or down a line

Win: CTRL SHIFT ↑ or ↓ Mac: ⌘ CTRL ⇧ Or ⇩

How to use Sublime Text? Summary of 9 tips for using Sublime Text

##Sublime Text Tip 7: Wrap rows or selected items with labels

Win: ALT SHIFT W Mac: CTRL ⇧ W

How to use Sublime Text? Summary of 9 tips for using Sublime Text

Sublime Text Tip 8: Calculate mathematical expressions

Win: CTRL SHIFT Y Mac: ⌘ ⇧ Y

This 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.

How to use Sublime Text? Summary of 9 tips for using Sublime Text

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)

How to use Sublime Text? Summary of 9 tips for using Sublime Text

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Let's talk about how to turn off automatic updates in Sublime (picture and text introduction) Let's talk about how to turn off automatic updates in Sublime (picture and text introduction) Feb 24, 2022 am 10:29 AM

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 Development tools and debugging skills for PHP and CGI: improving development efficiency Jul 21, 2023 pm 03:12 PM

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

A brief analysis of the reasons and solutions for why sublime text cannot run php A brief analysis of the reasons and solutions for why sublime text cannot run php Mar 24, 2023 am 10:58 AM

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.

What are the common code editors for PHP programming? What are the common code editors for PHP programming? Jun 12, 2023 pm 12:30 PM

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

Common PHP editors and development tools Common PHP editors and development tools Jun 23, 2023 am 09:36 AM

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

Recommended configuration for C/C++ programming using Sublime Text on Linux Recommended configuration for C/C++ programming using Sublime Text on Linux Jul 04, 2023 pm 05:57 PM

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 in sublime How to build php in sublime Oct 26, 2022 am 09:31 AM

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.

Sublime Text function for PHP function Sublime Text function for PHP function Mar 27, 2024 am 08:42 AM

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

See all articles