Reputation: 263078
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
Reputation: 4626
In Visual Studio 2015:
Tools -> Options -> Text Editor -> File Extension:
Map extensionless files to: < Microsoft Visual C++ >
Upvotes: 4
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