LoginSignup
17
14

More than 5 years have passed since last update.

Atomの検索で特定のディレクトリを除外する方法

Posted at

Atomの検索で特定のディレクトリを除外する方法

検索配下にnode_modulesとかがあると、ファイル数が多くて検索終了までに時間が掛かるので、検索しないディレクトリを指定する方法。
方法は大きく2つ。

特定のディレクトリを常に除外する場合

Settingから変更可能。config.csonを直接変更してもよい。

SettingsのCore内の「Ignored Names」に除外したいフォルダ名を追加する

複数の場合はカンマ区切りで追加する。

スクリーンショット_2016-12-09_16_53_30.png

config.csonのcore.ignoredNamesに以下を除外したいフォルダ名を追加する

複数の場合は配列で追加する。

config.cson
core:
  'ignoredNames': [
    '.git'
    'node_modules'
  ]

特定のディレクトリを検索時に指定して除外する場合

検索ディレクトリに不要なディレクトリ名の頭に「!」を付けて追加する

スクリーンショット_2016-12-09_17_11_19.png

(There's no way to exclude paths from a search #149 より引用)

17
14
1

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
17
14