Sublime text - 在根文件夹中排除文件(但不在其他任何地方)

时间:2016-07-19 14:15:42

标签: sublimetext3 sublimetext

给定文件foo.html

如何从项目的根文件夹中排除特定文件,但不能在其他任何地方排除?

我试过了:

"file_exclude_patterns":[
    "foo.html" // ignores everywhere
]

"file_exclude_patterns":[
    "./foo.html" // does nothing
]

"file_exclude_patterns":[
    "/foo.html" // does nothing
]

1 个答案:

答案 0 :(得分:2)

我只能通过指定根文件夹的名称来实现:

"file_exclude_patterns": ["project_folder/foo.html"]