vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Dim inactive code

Open veto-gh opened this issue 9 years ago • 9 comments

I'm sorry if this has been asked before.

Is there any feature/workaround to make inactive code sections (ruled out by the pre-processor) visually differentiable? I could not found anything on that matter. I.e.: a It already works in trivial cases: a

If not consider this a feature request. I would love to use VSCode for bigger projects with nested pre-processor checks and this would really help.

veto-gh avatar Nov 22 '17 14:11 veto-gh

This is covered by #230. I recently discovered a way that we can do this and I need to test it out. I'm not sure if we'll get it for the December release though.

bobbrow avatar Nov 22 '17 18:11 bobbrow

Thanks for the quick answer and for pointing me to the original issues, which I up-voted.

veto-gh avatar Nov 22 '17 19:11 veto-gh

@veto-gh Inactive code colorization has been added in 0.15.0 (intelliSenseEngine needs to be "Default" though).

sean-mcmanus avatar Feb 15 '18 22:02 sean-mcmanus

Thank you for the heads-up! (I already followed #1466 closely) And it works like a treat on Ubuntu 16.04, great work guys!

Off-topic: Is there a request/issue I can follow which allows the IntelliSenseEngine to parse defines and includes (obtained by pkg-config) from a makefile? Should I create one?

veto-gh avatar Feb 16 '18 12:02 veto-gh

@veto-gh I don't think there is a feature request to parse defines and includes from a makefile. Please create one.

bobbrow avatar Feb 16 '18 16:02 bobbrow

Please create one

Done, see #1587.

veto-gh avatar Feb 18 '18 22:02 veto-gh

Thank you.

bobbrow avatar Feb 20 '18 17:02 bobbrow

It appears this change is suddenly dimming large amounts of code in our project with multiple targets that span various configurations. Unfortunately, I now have to disable this plugin in order to effectively browse my code and retain syntax highlighting. Is there a way to make this feature configurable?

codecae avatar Feb 24 '18 19:02 codecae

They are working on a setting (see #1574).

For a temporary workaround to disable it please see the thread I mentioned above (#1466).

veto-gh avatar Feb 25 '18 08:02 veto-gh