Skip to content

Dev Mode in Visual Studio

Daniel Rosenwasser edited this page Jan 21, 2015 · 18 revisions

Dev Mode is a new feature for TypeScript 1.4 and higher that allows you to

  1. Use a custom language service file of your choosing.
  2. Debug the script side of the language service Visual Studio is using during a session.

Enabling Dev Mode

In Visual Studio 2013

  1. Open up the Registry Editor (regedit.exe from the Run prompt).
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TypeScriptLanguageService (or create the key if it does not exist).
  3. Create a new DWORD (32-bit) Value with the name EnableDevMode.
  4. Right click the EnableDevMode value and Modify it.
  5. Change the Value data to 1.

In Visual Studio 2015

  1. Open up the Registry Editor (regedit.exe from the Run prompt).
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\TypeScriptLanguageService (or create the key if it does not exist).
  3. Create a new DWORD (32-bit) Value with the name EnableDevMode.
  4. Right click the EnableDevMode value and Modify it.
  5. Change the value data to 1.

Using a custom language service file

  1. Enable dev mode.
  2. Open up the Registry Editor.
  3. Navigate to the applicable TypeScriptLanguageService.
  • In Visual Studio 2013: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TypeScriptLanguageService
  • In Visual Studio 2015: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\TypeScriptLanguageService
  1. Create a new String Value with the name CustomTypeScriptServicesFileLocation.
  2. Right click the CustomTypeScriptServicesFileLocation value and Modify it.
  3. Change the value data to the full path of your alternative services file (e.g. C:\Users\drosen\TypeScript\built\local\typescriptServices.js)

Debugging the language service

Clone this wiki locally