目录

Code Indexing (clangd)

When a large C/C++ project is opened, code indexing takes a long time and continuously consumes CPU and memory resources, forcing you to wait before coding, which compromises the development efficiency.

Since version 26.0.0, DevEco Studio allows you to switch between C/C++ code indexing modes to accommodate different project sizes and development requirements. The available code indexing modes are No index, Lightweight index, and Full index (default).

The configuration takes effect persistently for the current project.

Choose File > Settings (DevEco Studio > Preferences/Settings on macOS) > Advanced Settings > Clangd to switch the indexing mode. After mode switching, restart DevEco Studio.

When a large C/C++ project is opened, a prompt will appear in the lower-right corner of DevEco Studio, recommending that you switch the indexing mode.