Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide *pyc files in atom editor

Started using Atom for Python/Django development and would like to hide all the *.pyc files from sidebar.

How to configure it?

like image 772
andilabs Avatar asked Jun 06 '14 10:06

andilabs


1 Answers

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.

like image 136
Lee Avatar answered Sep 19 '22 19:09

Lee