From 9f2546bb8f9e558f9f8fcee3a89393d0c18588c5 Mon Sep 17 00:00:00 2001 From: Phil Clay Date: Mon, 6 Nov 2023 18:31:24 +0100 Subject: [PATCH] Mention loading/unloading modules in IntelliJ (#9810) --- .../intellij-setup-and-troubleshooting.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/contributing/intellij-setup-and-troubleshooting.md b/docs/contributing/intellij-setup-and-troubleshooting.md index a1ce9af3a41b..0936f04bcf13 100644 --- a/docs/contributing/intellij-setup-and-troubleshooting.md +++ b/docs/contributing/intellij-setup-and-troubleshooting.md @@ -19,6 +19,18 @@ Configuration: Note: If google-java-format generates errors in Intellij, see . +## Load/Unload Modules + +This project has many modules, which have many dependencies. +Therefore, IntelliJ indexes a lot and consumes a lot of CPU/memory resources. + +To minimize IntelliJ's indexing and resource utilization, +[unload any modules](https://www.jetbrains.com/help/idea/unloading-modules.html) +on which you are not actively working. + +Specifically, unload all modules, and then selectively load the modules on which you need to work. +IntelliJ will prompt you to load additional modules on which the selected modules depend. + ## Troubleshooting Occasionally, Intellij gets confused, maybe due to the number of modules in this project,