Can I reindex from the command line?
Answered
Every time I open a new project that I haven't worked in for a few months, I inevitably end up waiting 10 minutes for everything to recompile and reindex. I want to create a script that runs through every project in a directory, pulls the latest commit from master, and then recompiles and reindexes it. That way, I can run the script at the end of the day when I don't need my computer for a few hours, and all of my projects will be up to date and ready to go when I need them. Is there any way to do this?
Please sign in to leave a comment.
There is no out of the box solution, but you can try to automate it using IDE scripting:
https://youtrack.jetbrains.com/issue/IDEA-138252
https://gist.github.com/gregsh/b7ef2e4ebbc4c4c11ee9 .