My favorite is when you have a git merge conflict - just open the file in VSCode and you can visually merge it. I can't explain the feeling of joy I had when I discovered this - and this keeps happening over and over with VSCode.
VS Code can do that?
201–210 of 280 posts
Re: VS Code can do that?
#202Will it ever get encoding autodetect? That's one of the big reasons I've stayed on Notepad++. VS Code clearly does detect the encoding, because when you go to change it it suggests the right one, but it doesn't load correctly.
It shouldn't matter in 2018. Why aren't 99.9% of your input files in either ASCII or UTF-8?
Re: VS Code can do that?
#203Has anyone figured out how to edit files directly from a remote directory over ssh/ftp?
Re: VS Code can do that?
#204Earlier quoted context omitted.
Languages/compilers that don't do loop-unrolling automatically. If they do, then yes, it's probably best to let the compiler do it.
Like which?
But I wasn't doing this for a loop unroll.
I had a fixed size array that I wanted to serialize/ deserialize to/ from capnproto - there are no fixed size arrays in capnproto, so I wrote a message that just had b1, b2, b3... b16, and then some code to pull it out into a statically sized array. It allowed me to pull a bunch of bytes into a much larger statically allocated array without any allocation or bounds checking.
Re: VS Code can do that?
#205Earlier quoted context omitted.
This exists in most editors I've used (intellij is alt + shift + click or double tap alt, if I recall). I don't know how people program without this feature - they should teach this shit in school. Multicursor is amazing. One thing it's been great for: I have code like: byte b1 = array[0]; And I want to do this for 16 bytes. Control + D to duplicate 15x. Double tap control, hit up 15 times - now there's a cursor at e…
I don't know how people program without this feature You must do some kind of programming I've not encountered in my many years. While my editor of choice can do this, I would have no idea how, because a feature like "increment duplicates" is needed so infrequently that I would never remember the shortcut.
Formatting is another.
Boilerplate code, for example today I had to implemented code like this:
impl Into for ProcessNode {
fn into(self) -> Node {
Node {some_boilerplate(self)}
}
}
I had 6 node types. Using multiple cursors I:* Implemented it once
* Duplicated it 5x
* Copied the names of the types I needed to impl for
* Attached a cursor to each impl
* Used ctrl + left/ right to word-jump, and past in the appropriate area
Now it's not like this saved me more than a minute or two, but this sort of thing is extremely common in my experience, across languages.
Re: VS Code can do that?
#206Earlier quoted context omitted.
I meant the suggested addons on that page, not VS Code per se. I'm also using it as my main editor on my Windows box at home where don't do serious development. My only real annoyance is that I seem to run into multiple addons that can't be properly installed for one reason or another and sometimes "Ignore this" doesn't work and then the popup gets stuck and you can't see the top three lines... Apart from that it's b…
> the popup gets stuck and you can't see the top three lines... The newest version has smaller popups on the bottom-right of the window, and that was a nice surprise for me.
Re: VS Code can do that?
#207Really nice idea, but 90% focused on Web (frontend?) development. HTML, JS, and not much else. :( Still found 2 useful things for me, Parens colorizer and settings sync via Github Gist.
IntelliJ Ultimate is still better even for frontend and node.
Re: VS Code can do that?
#208Earlier quoted context omitted.
I started playing with emacs 24 years ago, then spent 20 years as a devoted vim user with a two year work-enforced gap in Eclipse. I tried spacemacs in evil mode about four years back and stayed for magit. I tried VSCode a few weeks ago to see what the fuss was about and had my Eclipse PTSD triggered. Magit, mu4e, elfeed, eww, multiterm, restclient.el, tramp, [edit]org-mode![/edit], the list of replacements for bloat…
I am using vim for years now, and I haven't written more than 50 lines of vimscript apart from the bundles. Most of the thing that I have written is just maps, some configuration for other bundles, and some copied better defaults. I still don't get it when people say they heavily use elisp. Can anyone give example of a highly custom thing that you do in emacs/vim/any other editor, for which there is no famous bundle…
Re: VS Code can do that?
#209Re: VS Code can do that?
#210In the spirit of cranky HN bikeshedding, I present: The page body, as seen by a NoScript user: Web developers: Please, you can do better than this.
Like holy shit, how can a webpage displaying text and videos slow my supercomputer to a halt. Truly a feat of technology.
I'd replace the snark with additional details so the author could attempt to reproduce your issue.