My TypeScript syntax highlighting has been broken in Visual Studio. When I tried to check my settings in Tools>Options>Text Editor, there's no option for TypeScript. How can I add this back in to fix TypeScript?
-
What version of visual studio do you have?David Sherret– David Sherret2015-06-29 19:07:26 +00:00Commented Jun 29, 2015 at 19:07
-
I'm currently on Visual Studio 2013 Update 4.muttley91– muttley912015-06-29 19:10:50 +00:00Commented Jun 29, 2015 at 19:10
-
1Strange, I thought that version had typescript built in. Maybe try installing the plugin.David Sherret– David Sherret2015-06-29 19:12:45 +00:00Commented Jun 29, 2015 at 19:12
-
It should be built in (since Update 2, I believe) and I've used it before. My guess is that something went wrong, so I'll try installing the plugin and we'll see if that fixes it.muttley91– muttley912015-06-29 19:20:05 +00:00Commented Jun 29, 2015 at 19:20
3 Answers
You can download the latest version from here (1.5 beta):
Visual Studio updates less often than TypeScript, so although there are a lot of native TypeScript features, you need the extension too.
The extension contains the Visual Studio "TypeScript experience" and also the compiler.
Comments
I stumbled upon the same problem in Visual Studio 2017 and it seems that TypeScript options have been merged with JavaScript ones in this version of Visual Studio.
These options can be found under Tools -> Options -> Text editor -> JavaScript/TypeScript item.
Note: Visual Studio 2015 had a separate item for TypeScript.
