Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search and replace does not find multiline strings #39261

Closed
ShawnHartley-NovusTerra opened this issue Nov 28, 2017 · 2 comments
Closed

Search and replace does not find multiline strings #39261

ShawnHartley-NovusTerra opened this issue Nov 28, 2017 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) search Search widget and operation issues

Comments

@ShawnHartley-NovusTerra
  • VSCode Version: Code 1.18.1 (929bacb, 2017-11-16T18:32:36.023Z)
  • OS Version: Windows_NT x64 6.1.7601
  • Extensions:
Extension Author (truncated) Version
html-snippets abu 0.1.0
project-manager ale 0.23.0
path-intellisense chr 1.4.2
bracket-pair-colorizer Coe 0.10.14
xml Dot 1.9.2
php-intellisense fel 2.0.1
file-icons fil 1.0.7
auto-close-tag for 0.5.3
code-runner for 0.8.4
output-colorizer IBM 0.1.2
csharpextensions jch 1.3.0
mssql ms- 1.2.1
python ms- 0.8.0
cpptools ms- 0.14.2
csharp ms- 1.13.1
PowerShell ms- 1.5.1
team ms- 1.122.0
debugger-for-chrome msj 3.5.0
color-highlight nau 2.3.0
material-icon-theme PKi 3.1.0
vscode-icons rob 7.18.1
code-spell-checker str 1.5.1
vim vsc 0.10.5
html-css-class-completion Zig 1.14.0

Steps to Reproduce:

Description:
When searching for multi line strings it appears that the default behavior of the search is to strip newlines from the paste. This prevents the search function from matching the string and therefore prevents multi line search and replaces.

Steps to reproduce:

  1. Copy code in "Code used" and paste into a new empty file in vs code several times.
  2. Ctrl F and paste the code in Search.
  3. 0 matches found since newlines are stripped.

Text to be searched.
image

Search and Replace Box:
image

Code used:
`# tmp = ""

for r in relationships:

if r == relationships[-1]:

tmp = tmp + "\n\tnew ListItem() { Value = "" + r + "", Text = "" + r + "" }\n"

else:

tmp = tmp + "\n\tnew ListItem() { Value = "" + r + "", Text = "" + r + "" },"

out = "return new ListItem[] { " + tmp + " };\n"

print(out)`

Reproduces without extensions: Yes/No

@vscodebot vscodebot bot added the search Search widget and operation issues label Nov 28, 2017
@roblourens
Copy link
Member

/duplicate of #13155

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 28, 2017
@vscodebot
Copy link

vscodebot bot commented Nov 28, 2017

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Nov 28, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) search Search widget and operation issues
Projects
None yet
Development

No branches or pull requests

2 participants