使用 `folder_exclude_patterns` 只忽略顶级目录 [英] Use `folder_exclude_patterns` to only ignore top-level directory

查看:27
本文介绍了使用 `folder_exclude_patterns` 只忽略顶级目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个目录结构:

app
--controllers
----components
components

在我的 sublime text 2 项目文件中,我想忽略顶级组件目录(由 bower install 创建,同时保持对 components 目录的访问在 controllers 中.

And in my sublime text 2 project file I want to ignore the top-level components directory (which was created by a bower install while keeping access to the components directory in controllers.

我该怎么做?这是我目前的崇高设置:

How do I do this? Here's my current sublime settings:

{
  "folders":
  [
    {
      "path": "/path/to/Project",
      "folder_exclude_patterns": ["cake", "vendor", "node_modules", "components"],
      "file_exclude_patterns": ["*.sublime-workspace"]
    }
  ]
}

推荐答案

您可以向 folder_exclude_patterns 数组的成员添加其他路径:

You can add additional paths to members of the folder_exclude_patterns array:

"folder_exclude_patterns": ["cake", "vendor", "node_modules", "Project/components"],

应该可以正常工作.

这篇关于使用 `folder_exclude_patterns` 只忽略顶级目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆