Earlier 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…
Where did you find "duplicate and increment"?
VS Code can do that?
221–230 of 280 posts
Re: VS Code can do that?
#222Earlier quoted context omitted.
Increment duplicates is just one of many, many utilities that pairs well with multiple carets. 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 * A…
Or you could write a macro?
Re: VS Code can do that?
#223Slightly off topic but this code in example #5: get() { return new Promise((resolve, reject) => { fetch(`${baseAPI}/heroes`) .then(response => response.json()) .then(json => resolve(json)) .catch(err => { reject (err); }); }); } Why not just: get() { return fetch(`${baseAPI}/heroes`) .then(response => response.json()); }
async get() {
const response = await fetch(`${baseAPI}/heroes`);
return response.json();
}Re: VS Code can do that?
#224Some other ones: - In the Git view, select a modified file, select some lines of code you modified, cmd shift P, Git: Stage Selected Ranges. I dropped my dedicated Git GUI since I know this trick. - If you spend a lot of time coding in React, and have half of your files named index.js, do yourself a favor, go in the settings and add "workbench.editor.labelFormat": "short" (display the name of the file's folder in all…
I keep hearing good things about VSCode. If I weren't essentially married to emacs I'd definitely try it out. I'm not sure I'd recommend emacs to everyone at this point, though I think it remains a really solid choice of editor/OS for people willing to get over the learning curve and put up with a bit of clunkiness. Re the git stuff though- one place that I'm pretty sure emacs is the uncontested champ is in git integ…
But that said - it does it's job very well and magit is certainly excellent software for those that are interested in that interface.
Re: VS Code can do that?
#225Re: VS Code can do that?
#226Earlier quoted context omitted.
I actually love using them, especially with Fira Code.
Why? Not poking at you, just curious.
I get that it's not for everybody but being so against it is something I really do not understand.
Why use color schemes or different fonts at all then?
Re: VS Code can do that?
#227Q: But does it org-mode? A: No. Long A: Org-mode is plain text. So it org-modes, but not in a meaningful way.
https://github.com/ajtoo/vscode-org-mode
I've used it over Emacs for simple use cases without any real issues, and the project's under very active development.
Re: VS Code can do that?
#228For the past 2+ years I've continued to be amazed by VS Code. The most amazing thing about it, it works best (in my experience) on Linux.
I've noticed this too: builds are faster on Linux (I assume because of the longstanding perf issues with directory traversal on Windows), and some of the GUI elements on Windows are blurry, apparently because of Chromium issues with High DPI that are outside Microsoft's control. I imagine some manager at Microsoft rips his hair out over this, but their loss is our gain.
Re: VS Code can do that?
#229Earlier quoted context omitted.
IntelliJ Ultimate is still better even for frontend and node.
At work they pay the license for us if we want it but many of us (including me) still prefer VS Code. (And FWIW, I have used Jetbrains products before I used VS Code.)