What is an IDE doing when it's indexing?

Viewed 1870

When an IDE says it's indexing what does that mean? What is actually going on "under the hood"? Is it safe for me to build my project during it indexing or should I wait until it's finished indexing?

I'm assuming indexing is a common thing for IDEs but I've never had an explanation of indexing. I simply see the word indexing and think "I know that word, must be doing something." and I just take it for granted and expect it to happen.

What is indexing?

2 Answers

The indexing provides a quick way to locate certain elements, e.g. files containing a certain word or methods with a particular name, in large codebases. Developers can use the existing indexes built by the IDE itself, as well as build and use their own indexes.

Related