سؤال

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