There is of cource ctrl+alt+N for file search, but it only for open files. What if it is need to find file by criteria, say which starts from "newFile" and delete them or move to another folder? The key problem that Intellij Idea Search implemented only for file content, not file names. Also with ctrl+alt+N I can not list these files, select some of them and some action. It there something for batch file operation?
I'm using the following way to find a list of files matching a certain criteria:
newFile*
or *.test.js
I agree JetBrains could make this functions more obvious / straightforward to discover and use.
Tested with WebStorm 2018.2.2 and Intellij IDEA 2018.3. Hope that helps someone!
You can use the "Search Everywhere" window.
To open the window press the search button in the top right hand corner of IntelliJ, or double-press shift.
From here you can enter your search criteria, and it will return all matching files within the current project.
There is a checkbox to include non-project files if you wish. You can also use wildcards, and a forward slash at the start of the search will only find results beginning with the criteria.
For example:
Searching for /newFile*.java
will find all .java
files starting with newFile
.
If you omit the forward slash, it will return all .java
files with newFile
anywhere in the file name.
More information on the Search Everywhere function can be found here.
With regards to completing batch file operations on the list of files found, I do not know of any way that you can do this within IntelliJ. The simplest method would be to manually selecting each file in the Project window whilst holding ctrl, and then right-click and run your desired action on all items selected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With