Search code examples
flutterintellij-idea

How can I exclude application dependencies from search results in IntelliJ-idea when looking for a class or file on a Flutter Project?


Im using IntelliJ IDEA 2024.2.3 (Community Edition) and I want to search only over my project files and not its dependencies classes.

For example, when I search for files or classes for "build" I see all of the ios/.symlinks/*

Searching on files it shows a lot of classes that are not mine

Example searching files

Searching for classes it shows a lot of classes that are not mine

Example searching classes


Solution

  • To exclude a folder

    1. Show hidden files, search with cmd+shift+a and Show hidden files: enter image description here

    2. Search the folder, click it and then cmd+shift+a and put Excluded: UI

    To exclude all files with *.g.dart

    enter image description here