microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.39k stars 28.62k forks source link

Prioritize Directories in Quick Open (⌘P) #225771

Open donaldpipowitch opened 4 weeks ago

donaldpipowitch commented 4 weeks ago

Description

It would be beneficial to have a feature in Visual Studio Code that allows users to prioritize certain directories in the Quick Open (⌘P) results. This would help users who frequently access files in specific directories, such as src/, to have those directories appear higher in the search results without fully excluding other directories like tests/.

Proposed Solution

Add a setting in settings.json that allows users to specify directory priorities for Quick Open. For example:

{
    "quickOpen.priorities": {
        "src/**": 1,
        "tests/**": 0.5
    }
}

This setting would make files in the src/ directory appear higher in the Quick Open results compared to files in the tests/ directory.

Benefits

Additional Context

Currently, users can exclude directories from search results, but there is no way to prioritize certain directories without fully excluding others. This feature would provide a more flexible and user-friendly solution.

vs-code-engineering[bot] commented 2 weeks ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!