110

I am very new to Github Atom editor. It always shows hidden files such as .git, .sass in the side pane.

How to hide hidden files(dot files) in atom editor's side pane.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
Fizer Khan
  • 88,237
  • 28
  • 143
  • 153

6 Answers6

206

Edit > Preferences > Packages

In the field below "Installed Packages" type: "Tree View". This package has a few settings you can toggle, "Hide Ignored Names" is what you're looking for.

It's a really buried setting, not sure why.

You can also add it to your config:

'tree-view':
    'hideIgnoredNames': true
Willi Mentzel
  • 27,862
  • 20
  • 113
  • 121
ccheney
  • 2,212
  • 1
  • 16
  • 14
  • 22
    `Hide Ingored Names` only hides `.git` folder. Other option `Hide Vcs Ignored Files` hide all `.gitignore` files. – Fizer Khan Apr 03 '14 at 10:44
  • 2
    You'd think this first setting would automatically be applied, but it didn't appear to take effect until I added the 'tree-view' line to my config. Thanks @ccheney. – Kevin Suttle Feb 09 '15 at 08:49
  • 7
    The tricky part is finding the well-hidden *hide* option: **Atom > Preferences... > Packages > tree-view > Settings > Hide Ignored Names** – Dem Pilafian Feb 11 '15 at 23:01
  • 16
    I found that tapping the "i" key (while the tree view is focused) will toggle hidden paths. – aleclarson Jul 15 '16 at 21:04
  • Thank you @aleclarson. Hitting "i" with tree-view focused is the quickest solution for me since my settings are frequently overwritten (or I'm accidentally pressing "i"). – mphayes2 Apr 10 '19 at 15:06
34
  1. From the menu bar go to Edit > Preferences > Packages type in the filter "tree-view" click on the "Settings" button of this package and then check the "Hide Ignored Names" choice.

  2. Now go to Edit > Preferences > Core . In the Ignored Names box enter .* this will hide all the files/folders which are usually hidden in other file explorers.

If you want to hide normal files/folders just add them to this box separated by a Comma , for example : .*, Videos, Music

Willi Mentzel
  • 27,862
  • 20
  • 113
  • 121
salim
  • 341
  • 3
  • 2
  • 2
    This is the right answer, because explains how to config Atom to ignore all the files you want to be ignored, not just the *.git* folder that is ignored by default. – Eagle Feb 29 '16 at 16:51
28

You can configure Atom to ignore specific files by customizing the "Ignored Names" list Atom > Preferences > Settings > Core Settings > Ignored Names. Just add any file or directory to the list.

Important: to activate the Ignored Names list setting, so Atom ignores the files you configured, ensure that Hide Ignored Names is enabled under menu Atom > Preferences > Settings > Tree View > Hide Ignored Names.

There are many ways to customize atom. Check out the official Customizing Atom Page.

Steve HHH
  • 12,947
  • 6
  • 68
  • 71
AJ.
  • 1,248
  • 10
  • 27
  • But it does not hide it from sidebar, it just disable the folder. – Fizer Khan Apr 03 '14 at 10:44
  • 1
    @Fizar Khan: this answer does hide it in the sidebar, but you also need to enable **Hide Ignored Names** under menu **Atom** > **Preferences** > **Settings** > **Tree View** > **Hide Ignored Names**. I edited the answer to add the step to enable **Hide Ignored Names**. – Steve HHH Apr 11 '14 at 19:21
20

As stated above, Application menu > Preferences… > select Packages in the sidebar, search for "Tree View", click the Settings button > check Hide Ignored Names.

And now with pictures:

enter image description here enter image description here

jrc
  • 20,354
  • 10
  • 69
  • 64
20

just click on the i key in the tree view window

Click on the tree view from main window, type i on keyboard to toggle visibility of version control ignored files.

fearless_fool
  • 33,645
  • 23
  • 135
  • 217
Scott Jungwirth
  • 6,105
  • 3
  • 38
  • 35
1

In addition to all of the above info...

If you would like to hide all hidden files from the tree view:

  • Go to the core settings page and under "Ignored Names" enter .*

This will hide all files starting with a .

Christian
  • 11
  • 1