gbabiars
gbabiars

Reputation: 575

Limit Refactoring Scope in Webstorm

Is there a way to configure Webstorm so that when it refactors, it ignores specific areas of my project. Specifically, I would like to be able to ignore folders containing 3rd party dependencies and built assets, such as node_modules.

Upvotes: 2

Views: 563

Answers (2)

serg10
serg10

Reputation: 32697

You can also mark directories as completely ignored - they will then not show up in Webstorm's project view, will not be included in searches, won't be scanned when refactoring, etc. This is typically useful for directories containing built assets.

Right click on the folder in the project view, and choose "Mark Directory As", then select "Ignored".

Upvotes: 2

de1mar
de1mar

Reputation: 1216

You can make a JavaScript library of these folders as described here. They will be excluded from renaming and other refactorings scope.

Upvotes: 3

Related Questions