In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What are the skills of using Replace in Path in Intellij IDEA? I believe many inexperienced people don't know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Preface
Talk about the skills of using IDEA, the second-largest development tool in the universe.
Search / replace skills
A sharp weapon to read the source code
1. Match case: if this button is checked, the search will be case-sensitive.
2. Preserve case: if this button is checked, the search is case-insensitive, but when replaced, the first letter of your given string will be replaced with lowercase.
For example, if you type HelloWorld, it will be replaced with helloWorld.
3. Regex: you can use regular expression search, you can refer to java.util.regex.
4. The blue funnel in the upper right corner has several options:
5. File mask: you can filter the file format you are looking for. You can use wildcards:
You can specify multiple files at the same time, separated by commas. Note:! The negative pattern implicitly uses the * sign to match.
6. Search field: this is the one we use the most, that is, the search box, which can be entered manually or you can click the drop-down box to find history. You can also use regular expressions.
7. Replace field: replace the field, you can specify the replacement text, or you can replace the text with an expression. If you want to use\ in the expression, you need to insert three additional backslashes in front of it for escape.
8. In Project: search in your own project scope.
9. Module: search in the module, you can specify the module, and you can switch it in the drop-down box.
10. Directory: search within the specified directory. The small file tree icon on the right doesn't seem to be of any use.
11. Scope: search within the specified scope. There are various ranges in the drop-down box.
12, Preview area: of course, the most powerful is the preview window, you can use the arrow keys to preview up and down, and you can edit it in the preview box.
13. The most dangerous operation is the following:
When you reconstruct, if you don't do it well, you replace it all. That would be awkward. Tell me about the specific functions of the above options:
About Review:
This is a manual mode, you can check one by one. Replace All is to replace all the content, more dangerous, Replace Selected is to replace the selected content (using ctrl or shift multiple selections).
Summary
Well, this is the end of the search function of IDEA. In fact, in the process of reading the source code, you really need to learn to make good use of search, of course, not only search, but also various functions, such as breakpoint, breakpoint jump, class inheritance, implementation of UML, method call stack, thread call stack, variable condition judgment, etc., many, these are important functions that cannot be obtained when reading source code, in debug It can greatly improve our efficiency.
After reading the above, have you mastered the skills of using Replace in Path in Intellij IDEA? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.