How to search and replace function for "vscode vim"?

If you want to use VSCode's default search functionality while using the Vim extension, you need to configure the extension .

"vim.handleKeys": { "<C-f>": false }

Check the documentation for more information.

Regarding the actual vim search functionality, I cannot confirm it not working. The example you provided works on my end.

Input:

foo
foo
foo
foo
foo
foo
foo
foo
foo
foo
foo

Running :5,9s/foo/bar/g results in:

foo
foo
foo
foo
bar
bar
bar
bar
bar
foo
foo