I have some .cs files in a C# project for VS2015, with Build Action = 'None', as these are to merged with a C#-template and are thus not valid .cs files at all, but having syntax highlighting is nice and I want to keep that.
However, I get a lot of Intellisense errors in the error list AND in the text editor (red squiggles), as these are just method bodies, more or less.
I'd like to keep showing Intellisense errors for files that are actually built, so setting Error List to "Build Only" isn't correct. (I still get red squiggles in the text editor, of course, and this is the annoying part.)
So:
- Can I disable Intellisense for some files somehow?
- Alternatively, can I enable C# syntax-highlighting only for another extension?
(I can call these files .csmethod or something arbitrarily to avoid Intellisense triggering on them).
Note that if I enable syntax highlighting for .csmethod as per this question, I get Intellisense automagically :(