In PyCharm project view, how can I hide files by pattern? E.g. hide *.sqlite or all hidden (.*) files?

I've looked at many settings and tried searching, but no luck.

有帮助吗?

解决方案

Settings/Preferences | Editor | File Types --> Ignore files and folders

This will permanently hide all of such files. Since this is an IDE-wide setting, it will affect ALL projects and such files will be excluded from the project.


Alternatively -- use Settings/Preferences | Appearance & Behavior | Scopes and define custom scope with desired files only (or exclude all unwanted). This is per-project setting and you can define as many scopes as you want.

Once done -- you can switch to that scope in Project View panel (choose desired scope instead of default "Project").

其他提示

  1. Go to the settings in pycharm

    enter image description here

  2. In 'Appearance & Behaviour' select scopes: enter image description here

  3. Add a scope: enter image description here

  4. Name that scope: enter image description here

  5. Now you can enter either a pattern or select folder to include or exclude: enter image description here

  6. Now switch to the which was just defined:

    enter image description here

In 'Exclude_cached_scrapy_files' you will not see the excluded files. A scope can be a specific files or folders or files and folders following a patterns.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top