How to hide *pyc files in atom editor

In Atom 1.25.0 on Ubuntu I found this setting Hide Vcs Ignored Files under packages configuration: Preferences -> Packages -> Tree View -> Settings.

Also, pressing I while Tree View activated also works for me (@Suraj Thapar's comment).

Please note, you have 2 options here: Ignore file by .gitignore and ignore files by Hide Ignored Names which refers to Ignored Names core config settings.


The method for hiding files that you do not want showing up in the Tree View (which is what most people mean when they ask this question) depends on whether or not you've added the files to your .gitignore. If you have, then all you have to do is:

  1. Open Settings
  2. Scroll down the list on the left to find the Tree View package
  3. Click on it to bring up the package-specific settings
  4. Ensure Hide Vcs Ignored Files is checked

If you want to hide certain files in the Tree View whether you have a Git project open or not:

  1. Open Settings
  2. Add the file mask to the comma-separated list under Ignored Names (add *.pyc in your case)
  3. Scroll down the list on the left to find the Tree View package
  4. Click on it to bring up the package-specific settings
  5. Ensure Hide Ignored Names is checked

Also note that when you add a file mask to the list of Ignored Names that files matching that mask will not show up in other parts of Atom like the fuzzy-finder:find-file (Cmd+T on OS X and Ctrl+T on Windows/Linux by default) command.


I found this where it is said that you can toggle that in Preferences->Tree View->Hide Ignored Names and Hide Vcs Ignored Files.

Edit: The files to hide you have to specify first in Preferences->Settings->Core Settings->Ignored Names. This was described here.

Let me know if it works.