I want to find multiple string from a line in files. For example,
This is sample text
I can able to find the string is sample text
in the line.
But just I want to find the string contains the strings is
and text
. Is it possible to find using Visual Studio IDE "Find and Replace"
?
Is there any other way to find multiple strings using Visual Studio IDE?
You can find and replace text in the Visual Studio editor by using Find and Replace (Ctrl+F or Ctrl+H) or Find/Replace in Files (Ctrl+Shift+F or Ctrl+Shift+H). You can also find and replace only some instances of a pattern by using multi-caret selection.
How do you search multiple words in VS Code? Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
For multi-select, you can use CTRL-SHIFT-L. You can click over the word and then press key combinations(CTRL-SHIFT-L) this will select all same types of words from the file(vs-code).
I myself found the solution for this.
Using Use Regular Expression
option in Find and Replace
dialog. I entered following in Search term
text box and find.
is(.*)text
I got the result as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With