Live data from Hacker News

Visual Studio Code 1.7

code.visualstudio.com

41–50 of 180 posts

Re: Visual Studio Code 1.7

#41

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.

It does have multiple cursors. See https://code.visualstudio.com/Docs/editor/codebasics#_multip...

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

#42

I recently switch from atom, but the one thing I hate is that it doesn't save open files or folders between runs

If you mean keeping track of dirty files between sessions (aka hot exit), work started during this release and it should come to stable in v1.8. See https://github.com/Microsoft/vscode/issues/101

Re: Visual Studio Code 1.7

#43

I recently switch from atom, but the one thing I hate is that it doesn't save open files or folders between runs

That's weird, it does for me if if I don't crash. I remember specifically closing and reopening when I have my files just right so that they'd still be like that if it crashed lol.

Re: Visual Studio Code 1.7

#44

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.

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

#45

Microsoft and TypeScript team are doing amazing work with this editor! There are so many interesting features in it, gave it a shot few weeks ago and was really satisfied. And it is probably the first electron app that didn't feel like rest of the bunch, that are pretty much hogs and not very responsive (especially when we talk about editors and IDEs). But you know, I can't hang Emacs and Vim on the wall and leave th…

I've been using it since 1.2 and it works nicely. Very stable.

Re: Visual Studio Code 1.7

#47
post #36
post #8

I still prefer using the free edition of VS2015. Maybe too stuck in my ways.

I have no idea why anyone would prefer VS Code for C++ or C#/.NET work on Windows. For everything else, Visual Studio has never been particularly great.

I think a strong pull for it is its node debugger. At least for me. I'm not building giant C++ libraries (or however you C/C++/C# folks do) so it's just the right weight for what I do.

Last time I tried to install Visual Studio it was like 9gbs for the core.

Re: Visual Studio Code 1.7

#48

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.

The keyboard modifier for an additional cursor is Alt instead of Ctrl in VS Code. Maybe that's why you haven't found it.

Yes, that was it. Damn that muscle memory! :)

Re: Visual Studio Code 1.7

#49

I was wondering, like there is usually a "recommended plugins" list for Vim, does such a thing already exist for VS code?

Already exists, use the extensions panel (the square icon in the left most side of VSCode)

Thanks, knew the extensions panel, but not the "recommended" and "popular" parts.

Re: Visual Studio Code 1.7

#50
post #37

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.

It actually does have multi cursor. Try cmd + D to highlight multiple instances of a selected block, just like in sublime.

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.
Post reply on HN