Jakob Randa
Jakob Randa

Reputation: 23

Intellisense C++ file with alternative extension

Hi fellow programmers,

I have a C++ file with the extension .inc that is getting included from another C++ header. My problem is that the intellisense is inactive for this file, all the text just showing up black. I am using visual studio 2015. I have looked everywhere inside visual studio with no luck.

Is there any way to activate intellisense for this file?

Thanks in advance, Jakob.

Upvotes: 2

Views: 878

Answers (1)

Vlad Feinstein
Vlad Feinstein

Reputation: 11311

You need to tell VS that those .inc files are in fact C++.

Go to Tools -> Options -> Text Editor -> File Extension and add your .inc:

enter image description here

You need to restart Studio, at least for version 2013.

Upvotes: 3

Related Questions