Reputation: 23321
Started using Atom for Python/Django development and would like to hide all the *.pyc
files from sidebar.
How to configure it?
Upvotes: 76
Views: 23468
Reputation: 1067
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.
Upvotes: 4
Reputation: 18747
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:
Tree View
packageHide Vcs Ignored Files
is checkedIf you want to hide certain files in the Tree View whether you have a Git project open or not:
Ignored Names
(add *.pyc
in your case)Tree View
packageHide Ignored Names
is checkedAlso 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.
Upvotes: 175
Reputation:
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.
Upvotes: 23