ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-typescript

by sublimelsp ST3 Trending

TypeScript, JavaScript support for Sublime LSP plugin

Details

Installs

  • Total 3K
  • Win 1K
  • Mac 1K
  • Linux 854
Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2
Windows 2 5 5 4 7 3 4 4 4 8 6 4 5 4 6 13 7 6 7 4 3 2 8 3 5 7 5 6 8 4 5 5 4 2 3 4 3 0 4 4 6 4 5 6 4 6
Mac 1 9 18 9 10 4 9 12 11 14 6 5 2 7 10 8 15 3 3 3 6 8 5 6 10 5 5 3 5 9 6 9 4 5 3 5 3 10 5 5 6 6 3 8 0 12
Linux 0 8 3 6 3 1 5 2 2 10 3 1 2 3 3 4 2 4 4 1 3 2 5 2 8 2 8 2 5 1 3 2 6 5 1 7 5 8 5 5 5 3 5 3 2 6

Readme

Source
raw.​githubusercontent.​com

LSP-typescript

TypeScript and JavaScript support for Sublime's LSP plugin provided through Theia TypeScript Language Server.

Installation

  • Install LSP and LSP-typescript from Package Control.
  • For ST3: If you use TypeScript install TypeScript Syntax. If you use React install JSCustom.
  • For ST4: The TypeScript and React (TSX) syntaxes are built-in so no need to install anything else.
  • Restart Sublime.

Configuration

Open the configuration file using the Command Palette Preferences: LSP-typescript Settings command or open it from the Sublime menu.

Organize Imports command

To sort or remove unused imports you can trigger the LSP-typescript: Organize Imports command from the Command Palette or create a key binding. For example:

{ "keys": ["ctrl+k"], "command": "lsp_execute",
        "args": {
            "session_name": "LSP-typescript",
            "command_name": "_typescript.organizeImports",
            "command_args": ["${file}"]
        }
    },