r/VisualStudioCode • • Mar 22 '22

Trouble duplicating a block of code

Hi coders, just learning HTML recently and I have been using Ctrl+shift+ down arrow to duplicate a line down, that works great. However when I highlight a block of code, I have cursors flashing at the end of each line and when I hit the down arrow each line is copied underneath itself rather than as a block if that makes sense. Any idea what I'm doing wrong?

Cheers

Brett

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/bertie_88 Mar 22 '22

I think I found my own answer finally, if I Shift+Alt+Right arrow the multi cursor selection gets deselected ;)

Also for anyone else looking at this if you go to the selection menu, and deselect column selection mode, that works too ;)

Thanks for your help though, appreciate it!

Brett