[Sublime 3] 不想顯示在 Side Bar 的資料夾或檔案

打開 Settings,找到 folder_exclude_patterns 和 file_exclude_patterns,這兩個分別控制要排除的資料夾和檔案,Sublime 本身的註解也寫到,他們可以在各自的專案作設定。
// folder_exclude_patterns and file_exclude_patterns control which files
// are listed in folders on the side bar. These can also be set on a per-
// project basis.

所以再打開專案的設定檔,我自己是不想顯示 composer 和 npm 下載下來的套件資料夾,所以在 folder_exclude_patterns 加上 vendor 和 node_modules,設定如下:
{
    "folders":
    [
        {
            "path": "C:\\AppServ\\www\\laravel54",
            "folder_exclude_patterns":
            [
                "vendor",
                "node_modules"
            ]
        }
    ]
}

留言