Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text. Hide, but not exclude files/folders from the project?

Tags:

sublimetext3

Is it possible to just hide, but not exclude from the project? So I can still access them in project search etc?

By hiding I mean not displaying them in sidebar. When I just exclude files from the project I can't access them through Cmd-P.

like image 251
kali187 Avatar asked Jun 19 '15 09:06

kali187


1 Answers

To hide files from the sidebar, you’ll need to:

-Save the current open directory as project (Project > Save Project As) - Open the .sublime-project file and copy the path - Paste in the following code and paste in the path copied above

{
 "folders": [
    {
     "folder_exclude_patterns": [
        "excludedfolder1",
        "excludedfolder2"
     ],
     "path": "/your/project/path/here",
     "file_exclude_patterns": [
        "excludedfilename1.txt",
        "excludedfilename1.txt"
     ]
    }
 ]
}

reference from hiding files in sublime

like image 196
Minhaj Ahammed Avatar answered Oct 21 '22 12:10

Minhaj Ahammed