1
Mapping extensionless header files to C++ in Visual Studio
2
=============================================================================
4
Previous versions of the OSG included registry files which enabled syntax
5
highlighting for OSG's extensionless headers in Visual Studio. These are not
6
needed anymore, because starting with Visual Studio 2002 (7.0), there is a
7
setting that will map extensionless files to a certain language in the
8
options. This also works for the Express Editions.
10
1. Go to Tools-Options.
11
2. Open the Text Editor section, and click on File Extension.
12
3. At the bottom of the window, check the Map Extensionless Files To
13
checkbox, and select Microsoft Visual C++ in the list to the right.
15
Note that if you use this feature for other languages, you will have to
16
change it when needed. If that is too cumbersome you may want to generate
17
the registry files and do it that way instead. Please see the
18
.reg files in previous versions of OSG in the VisualStudio directory for
19
a guide on how to do that (hint: check the location of the registry key
20
to make sure the added values end up in the right place for your version