Search code examples
intellij-idearefactoringrename

Refactor rename broken in Intellij IDEA


Somehow, I managed to break my refactoring capabilities in Intellij IDEA 12. I have somehow disabled it for my project. Renaming a member through Shift+F6 doesn't work. The inline edit box is not drawn, nothing happens.

I know of the refactoring settings in Settings -> Editor, Enable in-place mode and Preselect old name are both checked.

It has to be some kind of project setting. I checked by creating a test project, adding some member and renaming it, which works perfectly.

What setting am I looking for? Or could my project be broken?


Solution

  • There is no way to turn refactoring off in the settings. My guess is that the project's cache/indexes are corrupted. I had a case once where refactoring, especially renames, stopped working. A re-index solved it for me. Go to File >Invalidate Caches, invalidate your caches, restart IDEA, and let IDEA re-index the project (progress is shown in the bottom status bar right of center). Then try the refactoring.

    If that does not solve it, take a look in the logs (Help > Show Log) and see if there is any indication in there as to the cause of the issue.