Skip to main content

Project Context

You can index your project and file to gain more context while using StackSpot AI. When you integrate your recent work, StackSpot AI can provide relevant code suggestions and solutions tailored to your specific context. There are two ways you can index your project:

Index a selection

Indexing the files currently open in your Integrated Development Environment (IDE) is a great option. With this approach, StackSpot AI will only use the more relevant files, resulting in a more focused indexing process.

To ensure your indexing stays up-to-date and efficient, StackSpot AI only updates the files within your indexed projects that change and are saved by you.

Index full project

Index your whole project, including all the files. When you do that, it provides a comprehensive indexing of the project's contents.

How do you keep the whole project up to date?

StackSpot AI updates the files you have edited and saved. However, as it is an entire project, the system detects any changes when you execute 'git pull' on the project. This ensures that the project remains synchronized with the latest changes.

Cleanup

The cleanup feature is designed to prevent unnecessary file indexing and won't impact your work in any way. It is an effective way to optimize resource usage and keep the indexed content relevant. An automatic cleanup option removes indexed files from the project after a specified period. The recommended time duration for this feature is three days.

Indexing your project

Follow the steps below:

Step 1. Access your IDE; in this example, it's Visual Code;

Step 2. Click on the StackSpot Extension on the left side;

Step 3. Click the three dots menu (...) on the upper right side;

Step 4. Select the ‘Project Indexing’ checkbox;

Step 5. Choose which option you want:

  • Choose Index Open Projects in IDE
  • Index entire project

See an example below:

Gif showing how to index project