All Products
Search
Document Center

AI Coding Assistant Lingma:Codebase indexing

Last Updated:Oct 20, 2025

Lingma automatically vectorizes your local project and creates an index for your codebase when you open a project. This provides deep, AI-driven awareness of your codebase and allows for the efficient retrieval of the current code file and cross-file context. The indexing process is incremental, which means new or modified files are processed in real time without manual intervention.

Important

This feature is available only for the Lingma IDE and JetBrains IDE plugins. It is not supported in Visual Studio Code.

Configure indexing

  1. In the upper-right corner of the Lingma IDE, click the user icon or use the keyboard shortcut (  , for macOS, or Ctrl shift , for Windows), and then select Settings.

  2. In the navigation pane on the left, click Indexing.

  3. Select one of the following options:

    • To manually enable indexing, click Create next to Codebase Indexing.

    • To automatically create or update the index, enable Auto Index.

Note: Codebase indexing supports a maximum of 6,000 files.

Ignore files

Lingma

By default, Lingma indexes all project files except for the following:

  • Files and directories listed in .gitignore

  • Files listed in .tongyiignore

Specify custom ignore files

You can define additional files or directories to exclude from indexing.

  1. In the upper-right corner of the Lingma IDE, click the user icon or use the keyboard shortcut (  , for macOS, or Ctrl shift , for Windows), and then select Settings.

  2. In the navigation pane on the left, click Indexing.

  3. Click Manage next to Ignore Files to configure custom ignore paths.

Configuration examples:

Example

Description

config.json

Ignores the specified config.json file.

dist/

Ignores the dist directory and the files within it.

*.log

Ignores all files with the .log extension.

**/logs

Ignores the logs directory at any nesting level.

To check if a specific file is ignored, use the following command:

git check-ignore -v [file]

FAQ

Where can I see the indexed codebases?

You can view the indexed codebases in the indexing settings for each project.

Is my source code stored on the Lingma server?

Lingma does not store your source code.