Is there a way to replace multiple lines of code fast?

so i want to replace multiple lines of code fast.
i’d use something like Ctrl+Shift+F but it doesn’t seem to work on multiple lines.

i want to make a script go from something like this:

for i = 1,10 do
    print("hi")
    print("hi2")
    -- do stuff
end

to

for i = 1,10 do
    -- do stuff
end
3 Likes

Highlight the part you want removed from your script with your mouse and backspace?

3 Likes

As @OfficialPogCat said, left click and hold just after the word do then drag your mouse to the end of the hi2 line and release the left mouse button.
Press Del or Backspace and it’ll all disappear.

2 Likes

You can highlight multiple lines of text at the same time with your mouse

Also if you’re using VSC and you want to remove certain text from several lines at once while leaving everything else, you can hold alt and click everything you want to select and it will have multiple cursors at the same time

3 Likes

i mean with multiple scripts at once, sorry for the confusion

1 Like

you cannot edit 2+ scripts at once if that’s what you mean. You can only modify the script you currently have open. Unless you open 2 scripts at once the drag them to be next to each other (kinda like with normal application on your computer)