How do I get a cursor on every line in vscode

  • Hold Alt+Shift+i

  • Hold Home (fn+-> Mac) for right-most or End for left most(fn+<- Mac)

enter image description here


Hold Alt+Shift and select the block. Then press End or Right button. You get selected individual lines.

I use version VSCode 1.5.3 in Windows.


The command Selection / Add Cursors to Line Ends altshifti will put a cursor on every line in the current selection. (For mac use optshifti)

Tip: You can pull up the keyboard shortcut reference sheet with ctrlk,ctrls (as in, those two keyboard combos in sequence). (For mac use cmdk,cmds)