Reputation: 14159
.idea/${repo}.iml
looks like:<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
<excludePattern pattern="*.log" />
<excludePattern pattern="*.lock" />
<excludePattern pattern="dist/*" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
preferences > directories
configuration:Being able to mark directories as excluded
by pattern,
so I can ignore multiple folder at once.
(I use a monorepo and have multiple dist dirs)
Files under dist
are still being indexed, even while the folder dist is marked with a different color.
using WebStorm 2019.1.3
Upvotes: 0
Views: 1414
Reputation: 93728
dist
should work, dist/*
won't - excluding files/folders by relative path pattern is not supported, see IDEA-173675
Upvotes: 7