Syntax highlighting for files without extensions

I work with some library headers that do not have the extension .h or .hpp . Visual Studio does not provide syntax highlighting or other functions for these files. Is there any way to enable them?

+8
c ++ visual-studio visual-studio-2010 syntax-highlighting file-extension
source share
2 answers

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

+6
source share

In Visual Studio 2015:

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

Move files without continuing to: <Microsoft Visual C ++>

enter image description here

+2
source share

All Articles