search
HomeDevelopment ToolssublimeSublime Text3 Six Find & Replace Methods

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!

Sublime Text3 Six Find & Replace Methods

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!

Statement
This article is reproduced at:csdn. If there is any infringement, please contact admin@php.cn delete
How to set shortcut keys for sublimeHow to set shortcut keys for sublimeApr 16, 2025 am 09:15 AM

To set the shortcut keys for Sublime Text, follow these steps: Open the shortcut key settings file Key Bindings - User. Add shortcut key settings using the format { "keys": ["key combination"], "command": "command" }. Save changes. Reload the shortcut key settings for the changes to take effect.

How to activate sublimeHow to activate sublimeApr 16, 2025 am 09:12 AM

Purchase a Sublime Text license and use the received key to activate the software: 1. Go to the official website to purchase the license; 2. Enter the license key; 3. Restart Sublime Text.

How to modify the sublime shortcut keyHow to modify the sublime shortcut keyApr 16, 2025 am 09:09 AM

To modify the shortcut keys of Sublime Text: 1. Open Sublime Text; 2. Click the "Preferences" menu; 3. Select "Key Bindings - User"; 4. Type relevant content; 5. Save the file. Users can press this to modify the shortcut keys to improve work efficiency.

How to use python code for sublimeHow to use python code for sublimeApr 16, 2025 am 09:06 AM

Running Python code in Sublime Text requires: 1. Install Sublime Text; 2. Install the Python interpreter (path is /usr/local/bin/python3); 3. Set up the Python environment in Sublime Text (add specific code in user settings); 4. Create a new file and paste or type Python code; 5. Go to Tools > "Run Command", enter "python" and press Enter; In addition, Sublime Text has built-in interactive Python interpreter (REPL), which can be used with "

How to generate html by sublimeHow to generate html by sublimeApr 16, 2025 am 09:03 AM

There are two ways to generate HTML code in Sublime Text: Using the Emmet plugin, you can generate HTML elements by entering an abbreviation and pressing the Tab key, or use a predefined HTML file template that provides basic HTML structure and other features such as code snippets, autocomplete functionality, and Emmet Snippets.

How to adjust the Chinese interface of sublimeHow to adjust the Chinese interface of sublimeApr 16, 2025 am 09:00 AM

By installing the Chinese language package and changing the language settings, you can switch to the Chinese interface in Sublime Text: Install the Chinese language package: Preferences > Package Control > Install Chinese Language Switching Interface Language: Views > Language Settings > Chinese (Simplified)/Traditional Change Menu and Dialog Language: Preferences > Settings > Add code and save settings file

How to use sublime shortcut keysHow to use sublime shortcut keysApr 16, 2025 am 08:57 AM

Sublime Text provides shortcuts to improve development efficiency, including commonly used (save, copy, cut, etc.), editing (indentation, formatting, etc.), navigation (project panel, file browsing, etc.), and finding and replacing shortcuts. Proficiency in using these shortcut keys can significantly improve Sublime's efficiency.

How to run sublime pythonHow to run sublime pythonApr 16, 2025 am 08:54 AM

How to run Python scripts in Sublime Text: Install Python interpreter configuration Interpreter path in Sublime Text Press Ctrl B (Windows/Linux) or Cmd B (macOS) to run the script If an interactive console is required, press Ctrl \ (Windows/Linux) or Cmd \ (macOS)

See all articles

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

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.