idea-exclude-dir

2.2.1 • Public • Published

idea-exclude-dir

npm npm npm npm npm


A plugin used to set the jetbrains editor to exclude the folder

NPM

NPM


exclude dir in idea(webstorm, IntelliJ IDEA ......)

增加 idea 下自动exclude node_modules文件夹

使用 jetbrains 的 idea 应该都会产生同样的痛苦

如果在cnpm安装期间不设置项目下的 node_modules文件夹 为 exclude 那么势必会卡死整个idea

因为如果不设置 exclude 那么 idea 会indexing node_modules下的所有文件

所以有了这个想法,在安装之前先设置 idea excludenode_modules文件夹

usage

install

npm install idea-exclude-dir --save-dev

use

In package.json

scripts 字段增加以下代码

"scripts": {
  "preinstall": "npm install idea-exclude-dir && idea-exclude"
}

同时配置 config.idea.index 字段

{
  "config": {
    "idea": {
      "index": ["/log", "/node_modules", "/.idea"]
    }
  }
}

CLI使用方法

全局安装

npm install idea-exclude-dir -g

命令行使用

idea-exclude -d /abc -d /path/to
idea-exclude -d /abc -d /path/to -c # 对目录取消exclude操作 

Example

package.json

Package Sidebar

Install

npm i idea-exclude-dir

Weekly Downloads

0

Version

2.2.1

License

MIT

Unpacked Size

8.89 kB

Total Files

7

Last publish

Collaborators

  • maxming2333