How to register custom file extension in JavaScript editor in Visual Studio 2010/2012?

(Also see the original message on MSDN)

I have a very simple requirement: edit my own file extension (e.g. xsjs, xsapp ...) with a JavaScript editor in Visual Studio 2010/2012. Of course, these file extensions are fully compatible with ECMA.

When I came to Tools → Options → Text Editor → File Extension and added my own extension, there is no JavaScript editor at all :( Then I chose the most likely option “Script Editor” (see the figure below) and the changes made, but it didn’t work either for one of the registered extensions.

Am I missing something? Does anyone tell me how to do this?

+4
source share
2 answers

This is currently not possible in any version of Visual Studio. I received confirmation from http://connect.microsoft.com/VisualStudio/feedback/details/748574/cannot-register-custom-file-extension-to-javascript-editor-in-visual-studio-2010-2012 I plan to use other editors (e.g. Eclipse) to complete the task.

0
source
  • Script editor is what you need. Afaik, no "javascript editor".

  • He works for me. Could you explain what you mean by "not working".

0
source

All Articles