How to disable auto import for headers?

It seems that ReSharper will auto include header file when using code completion.

For example, I don't want ReSharper to add " #include "Resource.h" ". How can I disable it?

I tried to disable import completion but seems that didn't work...

2 comments
Comment actions Permalink

When "Show import items in basic completion" is off, completion should not contain items which will auto-include a header file. How do you invoke completion? Make sure you're not using import completion (Shift+Alt+Space by default), which will always contain import items.

0
Comment actions Permalink

Thanks for the quick reply. I was using "Tab" to invoke completion. 

And it's my fault... I was trying to inherit a forward declared class. Now I think it's reasonable to auto include the base class file.

0

Please sign in to leave a comment.