3 ms·
I recently discovered a vscode extension literally called "Insert Cursor at Beginning of Each Line Selected". Super handy when you want multiple cursors to lin
by nickjj 9y ago
I recently discovered a vscode extension literally called "Insert Cursor at Beginning of Each Line Selected".
Super handy when you want multiple cursors to line up at the start of every line (by default vscode will wrap the cursor around to the end of the longer lines if you try to move around with the arrow keys).
There's about 20 other extensions I routinely use, which I documented at https://nickjanetakis.com/blog/switching-to-vscode-from-sublime-text#vscode-extensions https://nickjanetakis.com/blog/switching-to-vscode-from-subl....
- 0x6c6f6c 9y agoWhat's this do differently from just pressing Home with multicursors?
- nickjj 9y ago> What's this do differently from just pressing Home with multicursors? Pressing home doesn't always put you at the true beginning of the line. It will put you at the first non-whitespace character.
- kwood 9y agoIt saves a whole keypress (because you need to go into multicursor mode first, then press Home / Ctrl+A to get to the beginning of the line. Additionally, there is a case where if you don't select the last line until the end, you end up in a state where the last cursor is already at the beginning. If you press "Home" now, you end up having that last cursor at the beginning of the line - and the other ones at the indentation level (see https://github.com/Microsoft/vscode/issues/14919#issuecomment-258928515 https://github.com/Microsoft/vscode/issues/14919#issuecommen...) (Disclaimer: Author of the mentioned plugin, so I am heavily biased against my own workflow and saving-keypresses-obsession :P)