Did you know… How to use File Extension mapping to get syntax highlighting of a file extension

In VS 2005, go to Tools – Options – Text Editor – File Extension page.  Here you can map a file extension to one of the editors included with your Visual Studio SKU.  There is also an option to map files without extensions to a specific editor.

Happy Visual Studio’ing!

Comments (1)

  1. Anton says:

    Sara, do you know how to programmatically do it? For example, my default.js creates a project containing template .foo files. And I need these files to be associated with Microsoft Visual C++ (to have proper syntax coloring).

Skip to main content