How to rename a file in IntelliJ without searching for custom?

I am developing a Node.js project in IntelliJ.

The only way to rename files is Shift+F6 , which tries to find all the usual words that take too much time (~ 30 s - 1 min).

Is there a way to just rename a file without looking for usage?

This only happens when the code is stored in modules (which is necessary to be able to discard empty middle packets).

+8
intellij-idea refactoring
source share
2 answers

Not.

IntelliJ needs to find ways to rename them, otherwise you just rename the file, not refactoring. If you only want to rename the file, use the mv command from the terminal. You can also tell IntelliJ not to look at lines and text, which speeds things up a bit, but this is probably a bad idea in a javascript project (where almost everything is a line or text).

I use a lot of rename, and on my code base, which is quite large, it only takes a few seconds. Perhaps intellij requires more memory to work, so you can try to increase this.

+3
source share

The best way I've found is to map ALT+SHIFT+F6 to Reveal in Finder . Then just press enter and enter a new name.

This is good because it is very similar to SHIFT+F6 refactoring.

+11
source share

All Articles