Flagging of Unused Imports (C++ AppCode)

Answered

Am I wrong in thinking that AppCode used to show unused C++ includes directly in the editor? I know that we can remove them via Code>Optimize Imports, but I seem to remember it flagging it visually as a warning or something before. Maybe it was another JetBrains editor I'm thinking of. Any help would be greatly appreciated.

6 comments
Official comment

Hi,

Are you using AppCode 2019.1 EAP?

I'm actually on 2018.2, but I will download the newest version of AppCode now.

0

I'm now on 2018.3 and I still don't see the flags for unused imports / includes.  Is there a setting somewhere for this to turn it on or is this a bug?

0

Check Preferences | Editor | Inspections | C/C++ | Unused code | Unused include directive - it's likely disabled by default.

0

I've mentioned 2019.1 EAP because we do have a known problem with unused imports there. But 2018.3.x is not affected.

0

I believe this is was the issue.  Thank you very much.

0

Please sign in to leave a comment.