Vscode-cpptools: Allow "fuzzy" substring symbol search, similar to Go To File (CTRL+P) and Completion

Created on 1 Nov 2018  路  9Comments  路  Source: microsoft/vscode-cpptools

Is it possible to support substring searching in Symbol Search, just like the way the search in Go to File (CTRL+P) works today?

Feature Request Language Service

Most helpful comment

Coming from Sublime, that would be a killer feature for me too.

All 9 comments

We already support substring search. Can you provide repro details where this is not working?

For Go To File, you can type something like foobar and it would be able to find foo_baz_bar.cpp. However for Go To Symbol, that's not possible. Some of our users noted that the experience is inconsistent. They are big fans of the Go To File substring search, and would love to have the same feature for symbol search

@sean-mcmanus, @sherryyshi is asking for "fuzzy" search (as we refer to it) like we have for completion, etc.

Coming from Sublime, that would be a killer feature for me too.

This is a killer feature and I miss this very much coming to VS Code from Source Insight.

I don't think VS implements this either. I actually implemented this 8 months ago in response to https://github.com/microsoft/vscode-cpptools/issues/3416 (well, that was for completion instead of symbol search, but the code chang would be similar) , but after consulting the VS team I discovered that the addition of "*" wild cards to add the fuzziness was expected to have a major performance hit (for large databases), so I abandoned the change. However, I believe the PR change could be revived if we added an opt-in setting, which would allow users who really want the feature to get it (assuming they're okay with the performance...or maybe a separate "fuzzy go to symbol" command instead of a setting).

Any update about this feature?

@ppggff No updates. It's not on our schedule to get implemented (more upvotes needed).

This feature request has received enough votes to be added to our backlog.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ismadelgad11 picture ismadelgad11  路  3Comments

igorPhelype picture igorPhelype  路  3Comments

wdc596933938 picture wdc596933938  路  3Comments

arl picture arl  路  3Comments

chrisckc picture chrisckc  路  3Comments