Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How keep intellij idea index between restarts?

When I close Intellij Idea and start it again it begin indexing files, but I just close and open (for example after plugin install). Is there a way to "save" this index between restarts and do not refresh it after plugin installs?

like image 458
Cherry Avatar asked Feb 10 '15 06:02

Cherry


People also ask

How do I force index in IntelliJ?

Indexing To force reindex a project, use Invalidate caches. Indexing in IntelliJ IDEA is responsible for the core features of the IDE: code completion, inspections, finding usages, navigation, syntax highlighting, and refactorings.

Where are IntelliJ indexes stored?

By default, IntelliJ IDEA stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.

What is pre built shared indexes in IntelliJ?

Shared project indexes are built for all project sources, libraries, and SDKs. You can generate them on one computer and then apply on another computer. This is the main advantage of shared indexes over ordinary indexes.


1 Answers

There is no way to cancel/disable indexing - it is a core feature, all of IntelliJ functionality (syntax/error highlighting, code completion, code inspections, navigation, refactoring, code coverage, search, etc.) is based on it. Please try invalidating caches (File/Invalidate caches, Restart) - does the problem persist?

Also, do you have any build tasks running in background? Do they watch your files (i.e. are they triggered on file changing)? I'd suggest excluding all dynamically generated folders from the project (Mark directory as/Excluded) - this should make IntelliJ much faster. Note also that scanning Idea project folders for viruses slows down indexing tremendously, that's why excluding them from from on-access scan is required.

Having said that, you may want to increase the priority of idea.exe and increase cache,heap memory area, etc allocation in vmoptions.

like image 153
beingmanish Avatar answered Sep 30 '22 08:09

beingmanish