In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail what are the search-and-replace methods in Sublime Text3. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Find & replace (Finding&Replacing)
Sublime Text provides powerful find (and replace) functions, and to provide a clear introduction, I classify Sublime Text's lookup functions into three types: fast lookup, standard lookup, and multi-file lookup.
Quick find & replace
In most cases, we need to find another location where a keyword appears in the text. Instead of typing the keyword again and searching, we just need to use Shift + ← / → or Ctrl + D to select the keyword, then F3 jumps to its next occurrence, and Shift + F3 jumps to its previous occurrence. You can also select all the locations where they appear with Alt + F3 (you can then make multiple edits, that is, quick replacements).
Standard find & replace
Another common usage scenario is to search for a keyword that is known but not in the current display area, and you can use Ctrl + F to call up the search box to search:
And replace with Ctrl + H:
Keyword search & replace
For the average user, a regular keyword search can meet their needs: after entering a keyword in the search box, Enter jumps to the next position of the current cursor of the keyword, Shift + Enter jumps to the previous position, and Alt + Enter selects all the locations where it appears (again, it can be quickly replaced next).
There are different modes for Sublime Text search: Alt + C switch case sensitive (Case-sensitive) mode, Alt + W switch whole word matching (Whole matching) mode, in addition, Sublime Text also supports search within the selected range (Search in selection), this function does not have a corresponding shortcut key, but can be automatically enabled through the following configuration items.
"auto_find_in_selection": true
In this way, the search will automatically be enabled when the text is selected. With this feature, local renaming (Local Renaming) becomes very convenient:
Use Ctrl + H for standard replacement, enter the replacement content, replace the current keyword with Ctrl + Shift + H, and replace all matching keywords with Ctrl + Alt + Enter.
Regular expression find & replace
Regular expressions are a very powerful text search & replacement tool. Use Alt + R to toggle regular matching mode on / off in Sublime Text. Sublime Text uses the Perl regular expression style in Boost.
Multi-file search & replace
Use Ctrl + Shift + F to start multi-file search & replace (note that this shortcut conflicts with Sogou Input's simple and complex switching shortcut):
Multi-file search & replace default search / replace in currently open files and folders, we can also specify files / folders to search / replace.
This is the end of this article on "what are the ways to find and replace in Sublime Text3?". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.