Aflred
Aflred

Reputation: 4593

Typescript in visual code and node_modules

I have typescript installed and I am using visual code.

If i try to go to definition for a typescript function located in node_modules, visual studio expands the entire 'node_modules' folder, and I have to close it again.

It is ridiculous.

How can i stop that happening

Upvotes: 4

Views: 966

Answers (1)

zhimin
zhimin

Reputation: 3050

In VSCode, if you have two options in vscode 's user settings:

  1. set explorer.autoReveal to false, will disable automatically reveal files when opening them;
  2. add "**/node_modules":true to files.exclude, will hide the node_modules folder from explore pane;

Upvotes: 6

Related Questions