Is there a way in visual studio code to edit each line of text from the clipboard before pasting?
I want to create a snippet that will run at the appropriate key combination, edit the text that is copied, and then paste it.
For example:
INPUT - I have a few lines of text. I copy them.
BANANA APPLE ORANGE
I paste the text using a combination of keys, such as ctrl + w, and I am expecting the output:
1 - BANANA - SOME TEXT, 2 - APPLE - SOME TEXT, 3 - ORANGE - SOME TEXT,
I know that I can set the cursor at the beginning of each line and paste the text, but I'm looking for a faster solution that can additionally be extended with more conditions. E.g.:
- if the word "large" occurs in the text, replace it with "small",
- number the lines of text,etc.