Vscode: Auto search - option to search while typing

Created on 22 Mar 2018  路  9Comments  路  Source: microsoft/vscode

  • VSCode Version: Version 1.21.1 (1.21.1)
  • OS Version: macOS 10.13.3 (17D102)

Steps to Reproduce:

  1. open workspace
  2. type something in search - it will not execute search till click of Return/Enter or mouse click


Does this issue occur when all extensions are disabled?: Yes

While for some workspaces with tens of thousands of files it would be performance killer for smaller workspaces I would like to have the option to search "live". When I don't know the exact name of the file I could just start typing and search would make it's job.

feature-request on-testplan search

Most helpful comment

I've really been longing for this feature after coming over from WebStorm or IntelliJ!

I had no idea how helpful it was until I didn't have it. It can be a life saver to see search results populate live as you type because you often can't remember the full term or there are many similar terms.

I'd love to see live search come to VS Code too!

All 9 comments

If implemented, could it be toggled with a workspace setting and defaulted to 'False' ?

I agree that it could be a nice feature for smaller workspaces.

in settings :

search.autoSearch = auto | afterDelay | off

auto = turn autoSearch to afterDelay if project has <10000 files. Not sure how many files are considered as many for this algorithm. Probably file size is doing impact too.

afterDelay = auto search when "done" typing
Also search.autoSearchDelay = 300
It would mean: if no character input for 300ms - do the search.

Similar to "files.autoSaveDelay": 300 option, which I don't like that it saves after each keyDown event not when done typing but it's different issue. https://github.com/Microsoft/vscode/issues/46338

off = user has submit search input manually like it is now.

I feel like we have opposite experience with search:
1) I open a large file
2) I start typing in a search field and the file starts scrolling automatically to a match of my incomplete query

This is very distracting, especially when I'm trying to construct a search query based on what I see.
And I don't see a search.autoSearch setting anywhere to turn this off.

I've really been longing for this feature after coming over from WebStorm or IntelliJ!

I had no idea how helpful it was until I didn't have it. It can be a life saver to see search results populate live as you type because you often can't remember the full term or there are many similar terms.

I'd love to see live search come to VS Code too!

Would love to see this feature as well, it's the biggest reason I'm considering dropping vscode.

https://nuclide.io/blog/2017/08/31/Code-Search/

Additionally, it'd be great if there was an Omnisearch that searches filenames and content

This would be great to have. Even after weeks of using vscode I forget that it doesn't autosearch and I will highlight text then do CMD+Shift+F expecting to immediately be shown the results. Hitting the Enter key just doesn't want to get saved in my muscle memory :'(

It would also be great if we could enter the search term into command palette/Quick-Pick's input field and get live results in its list.

Something like this:

image of atom-fuzzy-grep package

Landed here after searching for how to enable this feature. It seems it's finally my turn to drop the classic Any news on this ?

Any news on this ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

villiv picture villiv  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

vsccarl picture vsccarl  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments