idea global search and replace content

In doing the project, sometimes global search and replace in the entire project or in a specified folder, which is a very convenient feature. Use as follows:

First, the global search
1, use the shortcut Ctrl + Shift + F to open the search window, or by clicking on Edit-> Find-> Find in path open the search window, as shown below:

2, the following search interface, divided into three on the lower portion of the preview portion, an upper portion of the main search condition (the content to be searched, range, mode, etc.), an intermediate portion of the search listing containing the file contents, the following can click on a single file document content.

3, the search range includes the entire project In project, Module1 module, Directory specified directory, specified range scope.
4, by checking the condition of the top of the box, you can implement regular search, specify a file extension and so on.

Second, the global replacement
global global search and replace similar, but more than a replacement operation.
1, through the shortcut keys Ctrl + Shift + R to open the window, or by clicking on Edit-> Find-> Replace in path open window. Fill in more than replace the contents of the input box search window, as shown below:


2, click Replace in Find Window bottom right corner to start the replacement operation. If you want to replace the file is very large, you will be prompted whether to continue, which replaced files check box, you can select as needed.
----------------
Disclaimer: This article is the original article CSDN bloggers "gnail_oug", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/gnail_oug/article/details/78281354

Guess you like

Origin www.cnblogs.com/maohuidong/p/11611917.html
Recommended