gpt4 book ai didi

git - Atom 从搜索中排除 node_modules 文件夹

转载 作者:IT王子 更新时间:2023-10-29 00:43:53 24 4
gpt4 key购买 nike

将 node_modules 放入 .gitignore 文件后,如何从 Atom 搜索“在项目中查找”中排除 node_modules 文件夹? atom 是否要求项目实际上有一个 git 存储库,或者 .gitignore 是否足以让 Atom 排除文件夹?

我的 .gitignore 看起来像这样:

.DS_STORE
*.log

node_modules

dist
coverage

最佳答案

步骤

  1. 启动原子
  2. 从菜单:编辑 > 首选项(atom > Mac 上的首选项)
  3. 在侧面菜单中,单击“打开配置文件夹”按钮

现在应该会打开一个新的 atom IDE。

  1. 打开文件“config.cson”
  2. core 下添加 ignoredNames: ["node_modules"]

config.cson 示例

"*":
core:
ignoredNames: [
".git"
"node_modules"
]
editor: {}
minimap:
plugins:
"highlight-selected": true
"highlight-selectedDecorationsZIndex": 0
welcome:
showOnStartup: false

希望对你有帮助

关于git - Atom 从搜索中排除 node_modules 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38101462/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com