Unable to get CLion to add needed header fle using <Alt + Enter>

I'm not even sure if I'm doing this the correct way, but I added

     wxDrid *custDG;

CLion let me know that wxGrid was unknown to it, so to add the header I did <Alt + Enter>. But that just gave me a menu with no option to add the header file <wx/grid.h>. I know CLion will do this for me. Will someone tell me the right way to do this?

Thanks.

0
3 comments

I did. I have a small test app going. CLion even brings up the "balloon helps" that show wxWidgets usage when working with the various classes. But it wouldn't add the grid.h for me. I added it myself. No big deal. But I'm sure CLion can do this for me, too. So when it didn't, I thought I was somehow at fault.

I come from Bode::Blocks, using the wxSmith designer for wxWidgets. When I add a grid to a form, wxSmith automatically adds the grid.h. No <Alt + Enter> or anything else. It knows that since I'm placing a grid on the form, I'm probably going to need the header, too.

0

Please send your project to clion-support at jetbrains.com so that we could take a look. Also specify OS, CLion version and toolchain that you use in CLion.

0

Please sign in to leave a comment.