Sublime Forum

Trying to exclude files and folders from sidebar in project file

#1

Hello,

I work on different project types, so setting file/fodler exclusion is sometimes only wanted for some project, not as a general config in ST

I trired to add these lines in st3 project file but files still appear

    "file_exclude_patterns":
    [
        "*.js",
        "*.js.map"
    ],
    "folder_exclude_patterns": ["node_modules"]

am I missing something ?
is this supported ?

thanks

1 Like

#2

Those should work as long as they’re associated with a folder in the project. Assuming your project file is saved into project’s root folder:

{
    "folders":
    [
        {
            "file_exclude_patterns":
            [
                "*.js",
                "*.js.map"
            ],
            "folder_exclude_patterns":
            [
                "node_modules"
            ],
            "path": "."
        }
    ]
}

5 Likes

#3

ok I had to put it inside folders indeed
thanks mate

1 Like