fredoverflow
fredoverflow

Reputation: 263078

syntax highlighting for files without extensions

I am working an some library headers that do not have a .h or .hpp extension. Visual Studio does not give me syntax highlighting and other features for those files. Is there any way to turn them on?

Upvotes: 10

Views: 2613

Answers (2)

Zingam
Zingam

Reputation: 4626

In Visual Studio 2015:

Tools -> Options -> Text Editor -> File Extension:

Map extensionless files to: < Microsoft Visual C++ >

enter image description here

Upvotes: 4

fredoverflow
fredoverflow

Reputation: 263078

Found it. In the German version of Visual Studio, the option can be found under "Extras / Optionen /Text-Editor / Dateierweiterung / [x] Dateien ohne Erweiterung zuordnen zu: Microsoft Visual C++".

Upvotes: 7

Related Questions