1

How do I hide certain hidden folders that are nested 3 folders deep from my sublime project.

{
    "folders":
    [
        {
            "path": "/C/Users/me/Desktop/files/siteFiles/happy site/trunk"
        },
        {   
            "folder_exclude_patterns": ["myHiddenFolder",".svn", "._d", ".metadata", ".settings"]
        }

    ]
}
1
  • Do you mean all folders three levels deeper than trunk, or just certain subfolders?
    – angerson
    Commented Mar 16, 2014 at 14:44

1 Answer 1

3

You need to edit your .sublime-project file like so:

{
    "folders":
    [
        {
            "path": "/C/Users/me/Desktop/files/siteFiles/happy site/trunk",
            "folder_exclude_patterns": ["myHiddenFolder",".svn", "._d", ".metadata", ".settings"]
        }
    ]
}

Save the file, and you should be all set. For more info on project settings, check out the docs.

3
  • folder_exclude_patterns doesn't go under settings; his syntax is correct. He's asking for additional patterns to hide folders of depth three or more.
    – angerson
    Commented Mar 16, 2014 at 14:50
  • @ProtractorNinja why wouldn't it work to any depth? At any rate, thanks for pointing out the syntax error, I've fixed it. Both items should go in the same array, not one after another. I think that folder_exclude_patterns could still go in a separate settings section, as it's valid there as well as in the folders section.
    – MattDMo
    Commented Mar 16, 2014 at 16:02
  • A pattern applies to any level of depth, but I couldn't figure out if he meant "all folders deeper than level 3", "these specific folders" (that aren't working with my current file), or something else entirely. After re-reading, I think he meant the latter, so your reworded answer should work. Maybe explain why his original wasn't working, though?
    – angerson
    Commented Mar 16, 2014 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.