Vscode: Suggestion: Add ability to Find/Replace in selection

Created on 6 Jul 2016  路  5Comments  路  Source: microsoft/vscode

  • VSCode Version: Code - Insiders 1.3.0-insider (a1293f5056e79c3f0e2cd3e24909f41ff4eef472, 2016-07-05T13:09:46.271Z)
  • OS Version: Windows_NT ia32 10.0.10586

Steps to Reproduce:

  1. Select some text
  2. Use Ctrl+F or Ctrl+H
  3. Observe that there is no way to find matches and replace all occurrences within the selection.

Side note: would also be nice if there was some way to indicate to "Change All Occurrences (Ctrl+F2)" a range in which to create the cursors.

Most helpful comment

We actually already support this - try out the 'Find in selection' button in the find widget

selectionfind

All 5 comments

We actually already support this - try out the 'Find in selection' button in the find widget

selectionfind

Ah thanks. I didn't even notice that button. Maybe it would make sense to make that selected by default when a text selection is made at the time the find widget is opened?

I believe that might have been the previous behavior but we have reverted that due to some reason - I can not remember why.

Is there a way to do this without using the mouse?

@tbfleming yes my pressing ctrl + f and the tab key and lot of times and then a space. I know this is not the best so please file a feature request to create a global workbench command to enable find in selection

Was this page helpful?
0 / 5 - 0 ratings

Related issues

curtw picture curtw  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments

lukehoban picture lukehoban  路  3Comments

sirius1024 picture sirius1024  路  3Comments

trstringer picture trstringer  路  3Comments