How to hide * pyc files in atom editor

Started using https://atom.io/ Python / Django and would like to hide all *.pyc files from the sidebar.

How to set it up?

+70
python atom-editor
Jun 06 '14 at 10:47
source share
3 answers

The method of hiding files that you don’t want to show in Tree View (which is what most people have in mind when they ask this question) depends on whether you added the files to your .gitignore . If you have, then all you need to do is:

  • Open Settings
  • Scroll to the left to find the Tree View package.
  • Click on it to open the settings for a specific package.
  • Make sure Hide Vcs Ignored Files

If you want to hide certain files in the tree, regardless of whether the Git project is open:

  • Open Settings
  • Add the file mask to the comma-separated list in Ignored Names (add *.pyc in your case)
  • Scroll to the left to find the Tree View package.
  • Click on it to open the settings for a specific package.
  • Make sure Hide Ignored Names checked

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

+160
Jul 14 '14 at 2:41
source share

I found this one that says you can switch it to Preferences β†’ Tree View β†’ Hide Ignored Names and Hide Vcs Ignored Files .

Edit: Files to be hidden must first be specified in Preferences β†’ Settings β†’ Core Settings β†’ Ignored Names . This is described here .

Let me know if it works.

+18
Jun 06 '14 at 10:52
source share

In Atom 1.25.0 in Ubuntu, I found this option Hide files ignored by Vcs in the package configuration: " Settings" β†’ "Packages" β†’ "Tree list" -> "Settings" .

In addition, pressing I while the tree view is activated also works for me (comment by @Suraj Thapar).

Note that you have 2 options: ignore the file using .gitignore and ignore files using the Hide Ignored Names option , which refers to the Ignored Names kernel configuration options.

+3
Mar 17 '18 at 8:35
source share



All Articles