For C++ I found the clangd plugin to be the secret. Just install that and get your build to output a compile_commands.json in your build folder. That is easy to do with cmake but most other setups can do it too. The plugin will find that after a clean build. Then it will magically index your whole project.
I hear you. I was getting way too worked up about it as well. I’ve reduced my phone time as best I can, got some physical activity in, and tried to focus on some hobbies. It has really been helping but it took a couple days to take effect. I’m sure that you have or will be voting. Just do your part and then try to occupy yourself with other things.