-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Find & Replace is often off by 1 line #129171
Comments
Are there any bare CR characters, not next to an LF character, in the files where this happens? If so it would work again if you change the file and save it in vscode. If that's not it, can you share the file in which it happens so I can try to repro? |
interesting... I did notice that if I edit the file, everything shifts to where it should be I'll try setting core.autocrlf and see what happens... after I make sure my small images are marked binary in gitattributes, so I don't corrupt them I do use this repo on iOS & Droid as well, although rarely edit over there so it's likely not what caused this |
A bare CR character is not a valid line ending on any modern OS, but sometimes different tools will end up putting them in files anyway. It's a known issue that our search tool is confused by these. #48063 |
so I added |
Most likely there is a weird CR character in the file, and now git is normalizing it for you. Glad it works for you now! |
Issue Type: Bug
screen shot pretty much says it all... when using find in files, find & replace is often off by a line... only work-arounds are go file by file, or switch to another editor for find & replace
this one has been around for at least a year, so it's not a recent regression
VS Code version: Code 1.58.2 (c3f1263, 2021-07-14T22:10:15.214Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (112)
A/B Experiments
The text was updated successfully, but these errors were encountered: