简体   繁体   中英

Clion code generation greyed out

I used to be able to use code generation in CLION to instantly generate getters/setters. However I recently found out that the generate button is greyed out. If i press ALT+INSERT now, i get the new tab to create a new file or c++ class. Any idea on how to regain the generate function?

Not sure if important but i'm using it on Windows with MinGW and I can still compile and run programs without any issues.

Thanks in advance for any help you can give me.

I ran into this problem as well. The fix for me was to add the new class header/source to my CmakeLists.txt file. Once the class is added to the project, then options were no longer greyed out and the code generation functionality returned.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM