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.

0
6 comments
Avatar
Permanently deleted user
Official comment

Hi,

Are you using AppCode 2019.1 EAP?

Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

0

Please sign in to leave a comment.