During the development of a large project with numerous modules, high memory consumption and slow code indexing may occur, impairing development efficiency.
Since version 26.0.0, DevEco Studio provides the Load/Unload Modules feature, allowing you to load modules on demand to reduce memory consumption and boost code indexing performance. Note that this feature may affect code editing capabilities. See the table below for details.
Load/Unload Modules | Code Editing Capability | Availability |
|---|---|---|
Loaded modules | Syntax/Semantic highlighting | Available |
Syntax/Semantic inspection | Available | |
Code completion | Available | |
Code navigation | Available | |
Usage search | Available (References in unloaded modules cannot be found.) | |
Code search (by double-pressing Shift) | Available | |
Code refactoring | Available (Code in unloaded modules is not modified during refactoring.) | |
Module build | Available | |
Unloaded modules | Syntax/Semantic highlighting | Available |
Syntax/Semantic inspection | Unavailable | |
Code completion | Unavailable | |
Code navigation | Partially available (Navigation to definitions in files on the direct or indirect reference chain of loaded modules works normally.) | |
Usage search | Unavailable | |
Code search (by double-pressing Shift) | Available | |
Code refactoring | Unavailable | |
Module build | Available |
In the Loaded Modules pane, select a module and click Unload to add the module to the list of unloaded modules. In the Unloaded Modules pane, select a module and click Load to add the module to the list of loaded modules.
Click Unload All to add all loaded modules to the list of unloaded modules. Click Load All to add all unloaded modules to the list of loaded modules.

You can view the information about the unloaded modules in the [projectPath]/.idea/.deveco/unload/unload.modules.json file.