Skip to content

How to use Sublime for TypeScript

Sublime Text 4 ships with built-in TypeScript syntax support[1]. The syntax definition is of higher quality than other third-party syntax definitions and is thus preferred over the other options for ST3 listed below.

This built-in TypeScript package primarily provides syntax highlighting and is accompanied by the Sublime Text core features, such as completions and “Go to Definition”.

LSP

If you are looking for inline documentation via on-hover popups, type hints, advanced auto-complete, and refactoring tools, you'll want to install the LSP and LSP-typescript packages.

LSP (Language Server Protocol) is the same underlying technology used in VSCode and other editors with rich TypeScript support. The Sublime LSP project offers similar support for many different languages.

ESLint

If you are using LSP, install LSP-eslint for general linting behaviors.

Alternatively, you can get ESLint support by combining the SublimeLinter and SublineLinter-eslint packages.

Options for Sublime Text 3


  1. Sublime Text 4 release announcement ↩︎