News for hackers. Stuff that matters.
Re:Visual Studio Code 1.7 by cyberferret on Wednesday November 02, 2016 @05:59PM (#12859756)
As much as I wanted to like Atom over VS Code, I find myself changing and starting most of my new projects in VS Code exclusively.

One thing that surprised me that VS Code didn't have was multiple cursors?? (like Atom and Sublime have by default). I didn't realise how much I use that feature (for renaming variables in a short procedure/function block etc). There is probably a plugin for that somewhere, I guess.

Re:Visual Studio Code 1.7 by mgottein on Wednesday November 02, 2016 @06:02PM (#12859791)
Re:Visual Studio Code 1.7 by cyberferret on Wednesday November 02, 2016 @06:06PM (#12859832)
Ah, Thanks - I see now the shortcut is [Alt-click] as opposed to [Cmd-click] in the other two editors. I just didn't dig around enough to find the right key combination. But I guess this shows how ingrained muscle memory and habits are hard to change, and why certain editors remain people's favourites.
Re:Visual Studio Code 1.7 by nullstyle on Wednesday November 02, 2016 @06:39PM (#12860045)
Be warned though... this is one area where vscode is noticeably worse than atom or sublime; There's no alt-click-drag support so making a rectangular edit is much more work; you manually create the correct selection on each line. It's one of the few things I miss from Atom (and one of the main reasons I switched to textmate way way back).
Re:Visual Studio Code 1.7 by Already__Taken on Wednesday November 02, 2016 @07:02PM (#12860185)
alt+shift+click-drag mate. Drag a rectangle and hit an arrow key seems fastest to make a column.
Re:Visual Studio Code 1.7 by renolc on Wednesday November 02, 2016 @06:03PM (#12859804)
It actually does have multi cursor. Try cmd + D to highlight multiple instances of a selected block, just like in sublime.
Re:Visual Studio Code 1.7 by cyberferret on Wednesday November 02, 2016 @06:12PM (#12859883)
Thanks for the additional useful tip. My usage of this feature is usually via 'brute force', i.e. Cmd-click (or Cmd-double click) on multiple points in my code and begin typing. This shortcut will make variable renaming a LOT easier.
Re:Visual Studio Code 1.7 by thomasfortes on Wednesday November 02, 2016 @06:56PM (#12860144)
Maybe you should also learn that ctrl+k skip one of the selections, so you can rename things and skip the ones that you don't want to change pretty fast when combined with ctrl+d.
Re:Visual Studio Code 1.7 by Matthias247 on Wednesday November 02, 2016 @06:07PM (#12859847)
The keyboard modifier for an additional cursor is Alt instead of Ctrl in VS Code. Maybe that's why you haven't found it.
Re:Visual Studio Code 1.7 by cyberferret on Wednesday November 02, 2016 @06:10PM (#12859875)
Yes, that was it. Damn that muscle memory! :)