14

Trying to figure out how to only search text within selected lines in visual studio code (version 1.17.2). I see lots of other options but not this which surely must be there.

Suggestions appreciated.

1
  • are the selected lines in a single page ?? Commented Oct 18, 2017 at 16:32

1 Answer 1

23

settings.json Ctrl+,

"editor.find.autoFindInSelection": "multiline" | "always" 
  1. Select text
  2. Search will look in the selected text
Sign up to request clarification or add additional context in comments.

1 Comment

2023 checking in: Using the pipe throws an error, "multiline" by itself works.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.