1

In Vim I can use :g/^\s*T\y A to copy all lines starting with T in a file to register a, then paste it to wherever I need it from said register. How can I, or what is the equivalent regex to do the same in Visual Studio Code? Be mindful that I am NOT fluent with regex and two days new to VS Code. Thanks for your help in advance.

1 Answer 1

1

I don't think you can copy to multiple registers like that in VSCode unless someone has an extension to do it. Otherwise, one at a time you can:

Put ^\s*T.*$ in the search field

ALT-Enter will select all occurences of those matches

CTRL-C to copy to clipboard

Then paste to where you want it.

Sign up to request clarification or add additional context in comments.

1 Comment

It's a couple more buttons of work but does exactly what I need it to do. Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.