Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot select Typescript as a language in VSCode

I am trying to use vscode and typescript. I have typescript installed globally. When trying to select the file language for proper syntax highlighting typescript is not listed. I have tried uninstalling vscode and reinstalling it, as well as disabling all extensions.

Currently I have prettier enabled, however since I can't select Typescript as a language, the syntax highlighting is none, or it makes things red since it isn't detecting that its typescript.

No syntax highlighting file language extension selection screen

Language selected is Javascript and Typescript syntax is highlighted red

like image 470
Dan Avatar asked Jul 12 '26 23:07

Dan


1 Answers

It sounds like you've disabled the built-in JS/TS extension (or potentially have another extension overriding it).

In the extensions view, search @builtin TypeScript and make sure TypeScript Language Basics is enabled:

Enabling TS language basics

TypeScript Language Basics provides syntax highlighting while TypeScript and JavaScript Language Features provides intellisense.

like image 155
Matt Bierner Avatar answered Jul 14 '26 13:07

Matt Bierner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!