📅  最后修改于: 2022-03-11 15:00:25.629000             🧑  作者: Mango
Go to the Settings menu and in the Preferences.sublime-settings file for the user and add a new node to the json named folder_exclude_patterns. In it, add the folders that you don't want to be displayed (in json array format).
Example:
{
// ... other settings
"folder_exclude_patterns": ["node_modules", "another_folder"],
}
If you want to exclude certain directory or file without hiding it from the sidebar, you can ignore the above solution and Add Exclude Filter in the Where section of the search bar. But you will have to specify it everytime you change the search directory.