3

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?

4
  • What version of visual studio do you have? Commented Jun 29, 2015 at 19:07
  • I'm currently on Visual Studio 2013 Update 4. Commented Jun 29, 2015 at 19:10
  • 1
    Strange, I thought that version had typescript built in. Maybe try installing the plugin. Commented 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. Commented Jun 29, 2015 at 19:20

3 Answers 3

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

0

I had the issue where the entire menu option was missing (Under "HTML (Web Forms)" there was "JSON" instead of the "Javascript/TypeScript" between them as seen here:

enter image description here

To Solve this, I ran the Visual Studio Installer and chose "Repair"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.