The following column sublime introductory tutorial will introduce you to the six search & replace methods of Sublime Text3. I hope it will be helpful to friends in need!
Finding&Replacing
Sublime Text provides a powerful find (and replace) function, in order to provide a clear In the introduction, I divide the search function of Sublime Text into three types: quick search, standard search and multi-file search.
Quick Search & Replace
In most cases, we need to find other locations where a certain keyword appears in the text. In this case, there is no need to re-replace the keyword. Enter it once and search. We only need to use Shift ←/→ or Ctrl D to select the keyword, then F3 to jump to its next occurrence position, Shift F3 to jump to its previous occurrence position, and you can also use Alt F3 to select its occurrence. All positions (multiple edits possible later, i.e. quick replacement).
Standard Find & Replace
Another common usage scenario is to search for a keyword that is known but not in the current display area. In this case, you can use Ctrl F Bring up the search box to search:
and use Ctrl H to replace:
Keyword search &Replace
For ordinary users, regular keyword search can meet their needs: enter the keyword in the search box and Enter to jump to the next position of the current cursor of the keyword. Shift Enter to jump Go to the previous position, Alt Enter to select all positions where it appears (similarly, you can quickly replace it next).
Sublime Text has different search modes: Alt C switches to Case-sensitive mode, Alt W switches to Whole matching mode. In addition, Sublime Text also supports selecting Search in selection (Search in selection), this function does not have a corresponding shortcut key, but it can be automatically turned on through the following configuration items.
"auto_find_in_selection": true
In this way, the search within the range will be automatically enabled when the text is selected. With this function, local renaming (Local Renaming) It becomes very convenient:
Use Ctrl H to perform standard replacement. After entering the replacement content, use Ctrl Shift H to replace the current keyword, and Ctrl Alt Enter to replace all matching keywords.
Regular expression search & replacement
Regular expression is a very powerful text search & replacement tool, use Alt R switch in Sublime Text Turn on/off the regular matching mode. Sublime Text uses the Perl regular expression style in Boost.
Multiple file search & replace
Use Ctrl Shift F to open multi-file search & replace (note the shortcut key and Sogou input method) Traditional switching shortcut keys conflict):
Multiple file search & replace defaults to search/replace in the currently opened files and folders, we can also specify files/folders to search/replace.
The above is the detailed content of Sublime Text3 Six Find & Replace Methods. For more information, please follow other related articles on the PHP Chinese website!

To run Sublime Text, you need to download, install the application, purchase a license (optional), and then launch the application. Create or open a file to start encoding.

Sublime Text can be Chineseized through the following steps: 1. Download the Chinese package; 2. Install the Chinese package; 3. Restart Sublime Text; 4. Set the default language (optional); 5. Verify the Chinese version.

There are two ways to delete plugins in Sublime Text: Delete through the Plug-in Manager: Select the plug-in you want to delete and right-click and select "Delete". Manually Delete: Navigate to the user data directory, locate the plugin folder and drag it to the Recycle Bin or Trash.

To write code using GBK encoding in Sublime Text, you need to: 1. Set the project encoding to GBK; 2. Create a new file; 3. Select GBK encoding when saving as; 4. Enter the code using GBK encoding.

sublime can be translated into Chinese as: 1. Sublime, sacred; 2. Extreme, extraordinary; 3. Indescribable, awesome; 4. Sublime thought.

The steps to purchase a Sublime Text registration code are as follows: Visit the website and select "Buy". Select the license type and enter information. Pay and receive emails containing registration codes. Open Sublime Text, go to the License menu and paste the registration code. Click Register to activate your registration code and advanced features.

Sublime Text provides a variety of ways to save code, including shortcut keys (Ctrl S), menu bar (File > Save), toolbar (disk icon), and command panel (Ctrl P). In addition, it also provides an automatic save function, which can automatically save open files regularly.

Use arrow functions to define anonymous functions in Sublime Text concisely and quickly, with the syntax: (parameter list) => expressions. The advantages include simplicity, readability, scope inheritance and closure functions. Notes include extension operators and this keyword limitations, and the need for explicit return statements for multi-line functions.


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

SublimeText3 Chinese version
Chinese version, very easy to use

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor