LoginSignup
3
3

More than 5 years have passed since last update.

SublimeTextのGoTo(command+p)で特定のディレクトリを表示しない方法

Posted at

タイトルのままですが、Railsのgemをプロジェクト内にインストールし、SublimeTextでGoToしようとすると、ローカルgem内のファイルが大量に候補として表示されてしまいます。

以下のようにインストールし、

bash
$ bundle install --path vendor/bundle

GoToしてみると、こんな感じ。
routes_rb_—_hello_app.png

そこで、以下のようにsettingsを追加すると候補から除かれます。
Preferences -> Settings - User

Preferences.sublime-settings
{
  "file_exclude_patterns": ["vendor/bundle/*"]
}

これで以下のようにvendor/bundle以下のフォルダ、ファイルはGoTo対象外になります。
routes_rb_—_hello_app_1.png

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3