Flagging of Unused Imports (C++ AppCode)
已回答
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.
请先登录再写评论。
Hi,
Are you using AppCode 2019.1 EAP?
I'm actually on 2018.2, but I will download the newest version of AppCode now.
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?
Check Preferences | Editor | Inspections | C/C++ | Unused code | Unused include directive - it's likely disabled by default.
I've mentioned 2019.1 EAP because we do have a known problem with unused imports there. But 2018.3.x is not affected.
I believe this is was the issue. Thank you very much.