Live data from Hacker News

VS Code can do that?

vscodecandothat.com

71–80 of 280 posts

Re: VS Code can do that?

#71
post #27

Earlier quoted context omitted.

I am on a fairly RAM constrained workstation (4GB) so I have no choice but to close it when I'm not using it. Otherwise I'll spend just as long swapping as I would opening a new instance.

I don't think a machine with just 4GB of RAM can be considered a 'workstation'.

Rude

Re: VS Code can do that?

#72

My favorite is multi-selection mode. It's not the same as "Column Mode" you find in other IDEs but try it and you will never want another editor again: (Option)Alt-Cmd + Down or Up arrow key From there, you can use arrow keys as normal, but instead of controlling one carrot, you control all the ones you created. So if I use the shortcut key to move to the next word, they all do, same with end of line, or what have yo…

s/carrot/caret/: https://en.wikipedia.org/wiki/Cursor_(user_interface)#Text_c...

Re: VS Code can do that?

#73

My favorite is multi-selection mode. It's not the same as "Column Mode" you find in other IDEs but try it and you will never want another editor again: (Option)Alt-Cmd + Down or Up arrow key From there, you can use arrow keys as normal, but instead of controlling one carrot, you control all the ones you created. So if I use the shortcut key to move to the next word, they all do, same with end of line, or what have yo…

In Emacs this feature is called multiple-cursors: http://emacsrocks.com/e13.html – Emacs got it after Sublime. But I find I typically get things done faster with keyboard macros, or maybe I'm just too stuck in my ways :)

Re: VS Code can do that?

#74
post #40

Oh, most of those are for HTML/JS. I was hoping it was gonna talk about performance improvement or support for additional languages and features.

There are a ton of language extensions available, is there a particular one you are missing?

Re: VS Code can do that?

#75
post #55

My favorite is multi-selection mode. It's not the same as "Column Mode" you find in other IDEs but try it and you will never want another editor again: (Option)Alt-Cmd + Down or Up arrow key From there, you can use arrow keys as normal, but instead of controlling one carrot, you control all the ones you created. So if I use the shortcut key to move to the next word, they all do, same with end of line, or what have yo…

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…

What's this do differently from just pressing Home with multicursors?

Re: VS Code can do that?

#77
tbh I wish editors would get rid of "log breakpoints". Teach people to use the conditional breakpoint and just enter `console.log(...)` instead, it's overwhelmingly more powerful. A specialized "log breakpoint" doesn't teach them that it's just code. (I've run into quite a few programmers who have known about log breakpoints for years, used them fairly heavily, but never knew you could do things in conditional breakpoints)

Want to collect all values of something as your code runs? conditional breakpoint: `x = (x || []).append(val)` and then print it whenever you feel like it. Log breakpoint? spit it out each time and... browse by hand? hope nothing's logged in between? bah.

Re: VS Code can do that?

#78

Earlier quoted context omitted.

I'm not sure where this feature originated, but it's been a core feature of Sublime for as long as I've used it, and is also broadly available in other editors. Definitely not a VS Code-specific thing, though it's still great!

I believe Sublime introduced the feature. I looked it up and it was already present in the first release on January 18, 2008.

Column editing? That was in a shareware text editor that I wrote for Windows in the mid 90s and I didn't invent it.

Re: VS Code can do that?

#80

My favorite is multi-selection mode. It's not the same as "Column Mode" you find in other IDEs but try it and you will never want another editor again: (Option)Alt-Cmd + Down or Up arrow key From there, you can use arrow keys as normal, but instead of controlling one carrot, you control all the ones you created. So if I use the shortcut key to move to the next word, they all do, same with end of line, or what have yo…

carrot?

caret
Post reply on HN