Ignore node_modules in Webstorm when using navigation pop-up

前端 未结 8 1537
执笔经年
执笔经年 2020-12-23 11:00

Is it possible to ignore searching the node_modules folder when using WebStorm\'s navigation pop-up window (Command + Shift + N

相关标签:
8条回答
  • 2020-12-23 11:57

    I'm not sure why, but I saw lots of files with "spec" on Ctrl+Shift+n (I can't publish images, sorry :( )

    I saw on the contextual menu over the node_modules: "Mark directory as": "excluded", "test sources root", "resources root"

    I went to settings > directories, and I saw the node_modules with red color and can't change it, but, on the left there is list without header (?), I'm not sure if it is the exclude list, but, there is an X, I pushed on it, and restarted the IDE and it works!

    If I see the contextual again, I see: "Mark directory as": "not exclude" and "test sources root". And in settings > directories I do not see on the lists, but red color on the folder node_modules (weird), I think it is so particular for this folder.

    0 讨论(0)
  • 2020-12-23 11:59
    1. Exclude the directory: Mark the directory itself as excluded (Right-Click -> Mark Directory As -> Excluded). It might then already disappear.
    2. Hide excluded files: Tick the project pane option (under the Gear-Wheel symbol) and un-tick Show Excluded Files to hide excluded directories
    0 讨论(0)
提交回复
热议问题