Kasper
Kasper

Reputation: 13622

How can I prevent TODOs from node_modules packages showing up in WebStorm?

I was trying to use the TODO window from WebStorm (or any other JetBrains IDE), but I get tons of TODOs from node_modules:

So in this way, this feature is not really useful. When I exclude the node_modules folder from the project, the TODOs go away, but also the autocompletion from those modules etc, so I don't think this is really the way to go.

How can I make sure those TODOs from node_modules are not shown?

Upvotes: 3

Views: 205

Answers (2)

Valentin Silvestre
Valentin Silvestre

Reputation: 129

For a solution if it didn't get fixed by magic (I assume plugin did that for your case) :

  • Press Alt + 6 (default bind for TODO)
  • Click on "Scope based" tab
  • Change the "Scope" by clicking on the button with three dot
  • Choose what directory you want to exclude in recursive way or not.
  • ???
  • Enjoy

Upvotes: 2

Kasper
Kasper

Reputation: 13622

It seemed like Webstorm fixed this itself after restarting Webstorm, I saw my node_modules where listed as 'library root'. I suppose this is a bug where node_modules are not listed as library on creating a new project.

Upvotes: 0

Related Questions