Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I speed up Typescript Intelisense in VsCode?

this is my computer:

  • MacBook Pro (16-inch, 2019)
  • 2.3 GHz 8-Core Intel Core i9
  • 16 GB 2667 MHz DDR4
  • Intel UHD Graphics 630 1536 MB

When working with typescript in angular this happens: enter image description here

The bigger the project the longer I have to wait for this to load. Really ruins my developer experience. Is there a way I can assign more resources to vs code so it runs faster? Are there any optimizations that I can do to make it work?

Solutions attempted:

  • Extremely Slow Typescript VSCode Intellisense
  • Extremely slow intellisense menu? No extensions loaded whatsoever.
  • Extensive CPU usage / Slow TypeScript Intellisense
  • VS Code Intellisense is extremely slow (there is no .vs file see screenshot below)
  • Visual Studio Code Intellisense is very slow - Is there anything I can do?
  • VSCode practically unusable with slow intellisense without using extensions

Example Project structure:

  • project structure
like image 593
Raphael Castro Avatar asked Feb 02 '21 16:02

Raphael Castro


People also ask

How do I make TypeScript faster?

Make TypeScript work faster Here's the trick: Run a separate TypeScript process in watch mode in a terminal tab. Keep it running as you write code — it'll respond to changes and highlight errors a lot faster compared to VSCode.

How can I make my VS Code code faster?

Windows: Ctrl + Shift + P. MacOS: Command + Shift + P.

How do I fix VS Code IntelliSense?

Troubleshooting# If you find IntelliSense has stopped working, the language service may not be running. Try restarting VS Code and this should solve the issue. If you are still missing IntelliSense features after installing a language extension, open an issue in the repository of the language extension.


3 Answers

Disabling this made it lightning quick.

Try this to see if it is a particular extension.

  • Open Command Palette (Ctrl+Shift+P)
  • Type in "Disable all installed extensions"
  • Enable them one by one or in groups and test the IntelliSense speed
like image 195
Anush Bhatia Avatar answered Oct 16 '22 17:10

Anush Bhatia


Options :

  • Disable the built-in extensions and restart the computer

  • Disable eslint and tslint-plugin

  • Depends on your VsCode version

like image 41
LuckyFr Avatar answered Oct 16 '22 17:10

LuckyFr


If you are using mongoose, some versions also cause this (5x and apparently some of the 6x). Updating mongoose or switching for prisma might solve the problem.

like image 2
sorold Avatar answered Oct 16 '22 18:10

sorold