AlithiaTec.com Blog

back to AlithiaTec.com

Change how Visual Studio handles file extensions and create your own

open the registry editor and navigate to

\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\X.X\Languages\File Extensions

where X.X corresponds to the version of VS you have (8.0 is VS 2005)

in my case I wanted to add another html extension called rhtml so:

- create a new 'key' named ".rhtml"
- create a new 'string value' named "(Default)" with a value of the GUID that corresponds to the editor you wish to use (in my case the HTML editor GUID found in the .html key: {58E975A0-F8FE-11D2-A6AE-00104BCC7269})
-create a new 'string value' named "Name" and the value should be a description of the file (in my case "Ruby HTML"

that's it!

posted by Chris @ 11:35 AM,  

0 Comments:

Post a Comment

<< Home