Exclude target folder from search results in Eclipse

后端 未结 3 1476
再見小時候
再見小時候 2020-12-13 06:00

I was wondering if it\'s possible to exclude target folder from eclipse quick search :

Ctrl+Shift+R

相关标签:
3条回答
  • 2020-12-13 06:16

    You can install AutoDeriv plugin from Eclipse Marketplace or http://nodj.github.io/AutoDeriv/. It allows you to create either global(workspace) or per-project .derived files in which you can specify which files/folders should be marked as derived.

    Here's a sample config file (taken from plugin's homepage):

    # set the 'target' and 'ext' folders as derived
    target
    ext
    # but don't affect the 'keep' sub-folder
    !target/keep
    # all files with a '.dep' extension are generated
    *.dep
    src/include/version.h # this specific file is also generated.
    
    0 讨论(0)
  • 2020-12-13 06:25

    Go to Add Resource Filter preferences dialog:

    Go to ProjectPropertiesResourceResource Filters

    Click Add Filter...

    Then fill the options:

    Filter type:

    ()Exclude all

    Applies to:

    ()Folders

    [X] All children (recursive)

    Filter and Folder Attributes:

    Name - Matches - [target]

    0 讨论(0)
  • 2020-12-13 06:28
    1. Mark the "target" folders as "derived" resource from the properties screen of those folders (this option is next to read only and archive property).

    2. In the quick search (Ctrl+Shift+R) screen press the arrow in the top right corner and untick "Show derived resources".

    Then those target-files will not be considered in the quick search anymore.

    0 讨论(0)
提交回复
热议问题