Skip to content

Option to find&replace in selection #1618

@mdro

Description

@mdro

Describe the new feature

I previously mentioned in #1612 that Visual Studio has a usefull feature for find&replace:
If you have more than one line highlighted when you open the replace menu, "replace all" will be limited to that part.

This is usefull for example when you want to add a CREATE TABLE statement (with separate PRIMARY KEY or FOREIGN KEY clauses) that is very similar to a different one in the same file: Ctrl+C, Ctrl+V, Highlight, Ctrl+H, change field names:

vsreplace

Visual Studio also prepopulates the search box (for search and find&replace) with selections smaller than a line or the word under the cursor. This feature would be less important to me.

Both features can be turned off in the settings menu of Visual Studio.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions