Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide files with certain extension in Sublime Text Editor?

People also ask

How hide open files sublime?

1 Answer. Show activity on this post. You can press ⌘ cmd + ⇧ shift + . while the dialog is open, which will toggle show/hide hidden files.

How do I hide in Sublime Text?

To hide the Minimap in Sublime text 3, click on “View” in the top bar, then click “Hide Minimap”, which will be the second option in the drop-down list. The Minimap will instantly be hidden and the area of the screen it previously used will be freed-up for text to take its place.

Is Sublime Text private?

Conclusion. Sublime Text itself is designed to provide as much privacy as possible. It does not send any harmful information about you and your projects home. It's plugin-API is as secure as the ones of any other scripting engine driven plugin-API of other editors/tools.

How do I display files in Sublime Text?

You have to add a folder to the Sublime Text window in order to navigate via the sidebar. Go to File -> Open Folder... and select the highest directory you want to be able to navigate. Also, 'View -> Sidebar -> Show Sidebar' if it still doesn't show.


Are you talking about the sidebar? For example, if you select File → Open and select a folder, then the folder and its contents are displayed along the left side, allowing you to navigate amongst its contents and sub-directories. If that is the case, then the answer is yes, files can be excluded.

Select Preferences → Settings – Default to open a tab called Preferences.sublime-settings – Default. This file is read-only, so you'll also need to open Preferences → Settings – User. The first time you open your user preferences it will be blank. It (and all Sublime config files) are in the JSON format, so you'll need opening and closing curly braces at the beginning and end of the file, respectively:

{

}

Activate the default preferences tab and search for file_exclude_patterns (which is on line 377 in ST3 build 3083) and also folder_exclude_patterns if desired. Copy its contents to your user preferences file, like so:

{
    "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.sublime-workspace"]
}

and feel free to add your own customizations. Please note that there is no comma (,) after the closing square bracket, as in this example this is the only customized preference. If you have multiple ones (changing fonts, window options, themes, or whatever) you'll need a comma after each item except the last one (trailing commas are illegal JSON):

{
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true,
    "word_wrap": true,
    "wrap_width": 0
}

You can also set them up per project and ignore folders, in your .sublime-project file, e.g.:

{
    "folders": [{
        "path": ".",
        "folder_exclude_patterns": [".svn", "._d", ".metadata", ".settings"],
        "file_exclude_patterns": ["*.pyc", "*.pyo", ".project"]
    }]
}