Install for Sublime Text on Windows
1. Install prerequisites
Install the LSP Sublime Text package:
- Open Sublime Text.
- Open the Command Palette (press Control-Shift-P) and type "Install Package Control".
- Open the Command Palette and type "Package Control: Install Package", then type "LSP".
2. Install quick-lint-js
-
Download the latest release of quick-lint-js for your platform:
Extract the downloaded archive.
-
Copy the extracted
bin\quick-lint-js.exe
file into a directory in yourPATH
.For example, copy it into the
C:\Windows\System32\
directory. -
Open a PowerShell window or Command Prompt window. Type quick-lint-js --version and press enter to verify the installation succeeded.
3. Configure Sublime Text
After installing quick-lint-js, you need to register quick-lint-js in Sublime Text's LSP package:
- Open Sublime Text.
- Open the Command Palette (press Control-Shift-P) and type "Preferences: LSP Settings".
-
In the
LSP.sublime-settings
file which opens, add the following code. If"clients"
already exists, add"quick-lint-js"
inside the existing{ }
:{ "clients": { "quick-lint-js": { "command": ["quick-lint-js", "--lsp-server"], "enabled": true, "selector": "source.js | source.jsx | source.ts | source.tsx" } } }