Last Updated: February 25, 2016
·
2.38K
· jigsaw

Files of css and js do not appear in the side bar of Sublime Text 2

When I use Coffeescript and Stylus, I getting in the way files of generated js and css is displayed the side bar of Sublime Text 2.

It is lack of visibility because file name is same. So, I was looking for a setting that does not display the *. css file and *. js .

Open the Default -> Settings - Preferences from the menu on the Sublime Text 2. It is a Preferences.sublime-settings In terms of file name.

Edit here. There is a configuration item called file_exclude_patterns to about 317 approximately line of this file.

"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.js", "*.css"],

Like this. This is useful if the file that is generated in other languages ​​is disturbing, because it will not be seen by adding a set here.

Thats all. Thanks.

Coffeescript や Stylus を使っていると生成された Javascript や CSS のファイルが Sublime Text 2 のサイドバーに表示されてるのが邪魔になってきます。

ファイル名は同じなのでパッと見で分からないのは可視性に欠けます。そこで、*.js*.css ファイルを表示しないようにする設定を探したらありました。

Sublime Text 2 のメニューから Preferences -> Settings - Default を開きます。ファイル名でいうと Preferences.sublime-settings です。

このファイルのだいたい317行目ぐらいに file_exclude_patterns という設定項目があるのでここを編集します。

"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.js", "*.css"],

こんな感じ。他の言語でも生成されたファイルが邪魔なときには、ここに設定を追加すると表示されなくなるので便利です。

以上です。