Multiline column copy paste in VS Code
1-select column of data you want to copy by holding alt
+shift
+mouse selection box
and copy it with ctrl
+c
2- select the places you want to paste into with alt
+mouse click
(note: this helps if the lines to be pasted into are in different places)
3-paste into the selected locations with ctrl
+v
I had some trouble with this until I figured it out. The second selection ( where you want to paste ), must be the same length as the first selection, otherwise it pastes all items at each location ( instead of one item per row ).
Use column-edit instead of the multi-line edit mode:
- Click the end of the source text.
- Shift Alt, click the beginning.
- Copy.
- Click the end of the destination text.
- Shift Alt, click the beginning.
- Paste.