Clion issue with intellisence

已回答

Good afternoon.
I'd like to report an issue I encountered while developing in CLion.
The problem is that when the project is built separately from cmake, IntelliSense doesn't work. As a result, code formatting doesn't work, we can't navigate to the class definition/declaration, and even comments using Ctrl+/ don't work.
Is it possible to make IntelliSense available even if the project isn't loaded through cmake?
Thank you.

0

Hi Dennis Vinogradov!

What build system is your project based on? How is it built?

0

cmake, but outside IDE, it create build with incompatible with cmake inside IDE.

0

project is very big, and I have to download and recompile the project several times to work intellisense.

But when I built outside IDE, intellisense does not work.

0

Does it help if you select Unix Makefiles as Generator in File | Settings | Build, Execution, Deployment | CMake?

0

I try, and answer tomorrow.

Thank you.

0

Thank you very much!

By default I had generator “Ninja”

I switch it to Let cmake decide, and all works!

0

Thank you for the update! I'm glad to hear it works!

0

请先登录再写评论。