How to properly index mono/mono source code in CLion?
已回答
I’m trying to open the Mono source code (https://github.com/mono/mono) in CLion. However, when I open the project, CLion does not index the code—there’s no syntax highlighting or code auto-completion.
How should I configure CLion to properly index the Mono codebase? Is there a recommended way to open or generate project files for it?
请先登录再写评论。
Hello!
First, it's better to make sure that the project can be built in the terminal. To do this, you need to follow these instructions - https://www.mono-project.com/docs/compiling-mono/. For example, on macOS, you would need to do the following (remember to replace PREFIX with your installation prefix):
If it works, you can then open the
monodirectory in CLion. If you see any warning related to the pre-configuration step in the Build tool window, please go to File | Settings | Build, Execution, Deployment | Makefile and adjust the settings. You might need to empty the Build directory field and set./configure --prefix=$PREFIX --disable-nlsin the Pre-configuration commands section.If you make any changes in the Makefile settings, please do Tools | Makefile | Clean and Reload Makefile Project after the changes.