chromium / vs-chromium

A Visual Studio extension containing a collection of tools to help contributing code to the Chromium project.
BSD 3-Clause "New" or "Revised" License
311 stars 90 forks source link

Do file name search more like VSCode #53

Open rogerta opened 5 years ago

rogerta commented 5 years ago

In VSCode I can type "cloud policy client cc" to find the file "cloud_policy_client.cc". This is very convenient since typing spaces is easier than typing underscores. VSCode's search seems to be pretty smart about how it maps space-separated words in the search query to file names. For example, the order of the words matters: typing "cloud client policy cc" will not find the file "cloud_policy_client.cc".

If this is difficult to emulate, would it be possible to extend the file search algorithm so that space is a synonym for underscore and period?

rpaquay commented 4 years ago

For reference: https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options

This topic does not seem to cover character replacements though.

rogerta commented 4 years ago

My bad, my earlier description should have been clearer. When I said "type" I meant after pressing Ctrl+P which is the "Go to File..." or "Quick Open" command. I can't seem to find docs though.