visual-studio-code

Configure VS Code so "Quick Open" only search for files, not tasks


To navigate between files in VSCode, I use the ctrl+p (Quick Open, Go to File) feature.

This feature works great unless you have some files that start with task. In this case, VSCode stop looking for files and instead shows tasks.

enter image description here

Is there a way to disable this?


Solution

  • I'm not aware of a way to disable this. I don't think any of the settings starting with task.quickOpen. do this. I'd suggest raising a feature-request issue ticket if you want this. It might not get the result you're after though, given that a similar request about searching for files under folders named "task" was closed with the suggestion to just add a slash after "task" (#207749).

    As a workaround, you could just not add a space after "task". Fuzzy matching would (probably) kick in.