News for hackers. Stuff that matters.
Re:VS Code can do that? by 0x6c6f6c on Saturday April 21, 2018 @12:35PM (#16892073)
What's this do differently from just pressing Home with multicursors?
Re:VS Code can do that? by kwood on Monday April 23, 2018 @03:52AM (#16901332)
It 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#issuecommen...)

(Disclaimer: Author of the mentioned plugin, so I am heavily biased against my own workflow and saving-keypresses-obsession :P)

Re:VS Code can do that? by nickjj on Saturday April 21, 2018 @12:42PM (#16892110)
> 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.

Re:VS Code can do that? by sellweek on Saturday April 21, 2018 @01:00PM (#16892187)
If you press it twice, it will put you at the beginning of the line.
Re:VS Code can do that? by nickjj on Saturday April 21, 2018 @01:07PM (#16892218)
Damn. Now I regret never taking a typing class.

It only took using a keyboard for about 22 years to learn pressing home more than once has benefits.

Thanks!