![Introducing LSP vtsls: VSCode's typescript for sublime text](/projects/lsp-vtsls/app-icon_hu06d26b89b32b5a4101cf341fe474540c_10302_92x92_resize_box_3.webp)
Introducing LSP vtsls: VSCode's typescript for sublime text
by Gx Anshu | Jul 13, 2024
VSCode’s TypeScript and JavaScript support for Sublime’s LSP plugin provided through vtsls.
What is vtsls ?
This is an LSP wrapper around TypeScript extension bundled with VSCode. All features and performance are nearly the same. you can enjoy VSCode’s typescirpt features into Sublime Text.
Installation
- Install
LSP
andLSP-typescript
from Package Control. - For ST4: The TypeScript and React (TSX) syntaxes are built-in so no need to install anything else.
- For ST3: If you are working with TypeScript install TypeScript Syntax. If you are working with React install JSCustom.
- Restart Sublime.
Configuration
Open the configuration file using the Command Palette Preferences: LSP-vtsls Settings
command or open it from the Sublime menu.
this plugin is a wrapper for vtsls so all its configrations are supported here. you can see configration schema and customize as you want by providing those values in setting by Preferences: LSP-vtsls Settings
.
code actions
currently its supporting main commands from vtsls but you can create PR if you want something new or create an issue for it.
here is the list of all the available commands
- LSP-vtsls: Organize Imports
- LSP-vtsls: Open TS server Log
- LSP-vtsls: Reload Projects
- LSP-vtsls: Select TypeScript Version
- LSP-vtsls: Sort Imports
- LSP-vtsls: Remove Unused Imports