You can use the TypeScript language server to benefit from TypeScript
, React
and JavaScript
support:
- Install Node.js
- Read the "Installing" section, basically, open a terminal and execute the following command:
npm install -g typescript-language-server typescript
It will install:
- TypeScript language server. This project delegates the LSP operations (completion, diagnostics, etc) to the tsserver from TypeScript which doesn't support LSP.
- TypeScript which hosts the tsserver.
- As the command will add typescript-language-server in your OS PATH, you will have to close and reopen your IntelliJ to update this PATH.
After that you can create the TypeScript Language Server with the language server template:
If you need to Run/Debug JavaScript/TypeScript program, you can configure the VSCode JS Debug DAP server.