News for hackers. Stuff that matters.
Re:Visual Studio Code 1.0 by eropple on Thursday April 14, 2016 @01:40PM (#11498824)
What, exactly and without sweeping generalities, does it do that is a transformative step over Sublime Text or Atom?

Or, hell, even Kate?

Re:Visual Studio Code 1.0 by jhasse on Thursday April 14, 2016 @02:32PM (#11499256)
For example the Git integration is awesome and even better than Atom's (you can commit, push, ...).

Of course you can do a lot with extensions, but at least in Atom's case they break a lot for me.

Re:Visual Studio Code 1.0 by eropple on Thursday April 14, 2016 @03:13PM (#11499536)
Well, okay, let's talk about that. Is having source control in your text editor enough of a benefit to one's daily routine as to be a step change of productivity or quality of life? It may be for you and I'm not saying you're wrong for that, I'm asking because it isn't for me; I have an alt and a tab key.

Bear in mind that the claim wasn't that it's better in some ways, but that it's sweepingly better than the stuff that came before (and Atom wasn't even mentioned by the OP, which is funny--I mean, I don't use it, but it's obviously in the conversation).

Re:Visual Studio Code 1.0 by wmccullough on Thursday April 14, 2016 @03:26PM (#11499630)
"Well, okay, let's talk about that. Is having source control in your text editor enough of a benefit to one's daily routine as to be a step change of productivity or quality of life?"

Uh, if you edit tens or hundreds of text files per day, it's a game changer.

Re:Visual Studio Code 1.0 by spdionis on Thursday April 14, 2016 @04:19PM (#11500013)
Being able to press ctrl+K instead of alt tab -> write "git commit -m" is pretty nice and much faster...

EDIT: that's only the most trivial benefit of git integration

Re:Visual Studio Code 1.0 by jhasse on Thursday April 14, 2016 @03:58PM (#11499860)
Having the git diff in your editor gives you syntax highlighting and let's you edit it (the right side) like you're used to.

I guess the killer feature of VS Code is multiple cursors (Ctrl+D). I only know of Sublime Text and Atom who also have this feature on Linux, not sure about Kate. Sublime Text is closed source and not gratis, Atom is slow and buggy.

Re:Visual Studio Code 1.0 by Skinney on Thursday April 14, 2016 @06:18PM (#11500765)
Not allowed to reply to your post, so replying here.

No, not built-in. They both have plugins, and allow you to set the key shortcut to whatever you please.

That they are not built-in really doesn't matter though. All these editors revolve around plugins, and it's common practice to save your preferences on github or the like so that it's easy to use the same settings and plugins on every machine.

Re:Visual Studio Code 1.0 by jhasse on Thursday April 14, 2016 @08:45PM (#11501343)
> Not allowed to reply to your post, so replying here.

I think you have to wait a few minutes, then it gets activated.

> No, not built-in. They both have plugins, and allow you to set the key shortcut to whatever you please.

That's too complicated for me. Last time I've tried to set up vim and emacs to my liking it was a mess: A lot of copying and pasting around random code, changing configuration files I didn't understand, ...

Re:Visual Studio Code 1.0 by Skinney on Friday April 15, 2016 @05:46AM (#11503152)
In all respect, but you are presumably a software developer. If someone approached you saying that language x is a mess, as they've copy-pasted around random code and changed configuration files they didn't understand. Would you accept that as valid criticism or told the person to actually learn their tools?

Granted, Atom, Sublime, VSCode etc. are easier to start with because they expose customization through JSON files instead of a custom programming language. But if someone where to tell you that they didn't understand how multiple cursors worked in VSCode, you would tell them to learn their tools and send them a link to the relevant page of the documentation (if that).

If you know your editor, adding functionality like multiple cursors is easy. The greatest strengths of extensible lightweight editors like VSCode and Emacs, is that such functionality is only a package away.

Re:Visual Studio Code 1.0 by jhasse on Friday April 15, 2016 @05:54AM (#11503179)
> they didn't understand how multiple cursors worked in VSCode, you would tell them to learn their tools and send them a link to the relevant page of the documentation (if that).

No that's the thing: I would tell them to press Ctrl+D, simple as that. Multiple cursors in Sublime Text, Atom and VSCode are intuitive and it's the first time in an editor that I actually use them.

Re:Visual Studio Code 1.0 by Skinney on Thursday April 14, 2016 @06:04PM (#11500698)
Emacs and Vim also have multiple cursors.
Re:Visual Studio Code 1.0 by jhasse on Thursday April 14, 2016 @06:14PM (#11500749)
Built-in? What is the equivalent of Ctrl+D (Sublime Text, Atom and VS Code) in vim and emacs?
Re:Visual Studio Code 1.0 by bigpeopleareold on Friday April 15, 2016 @05:02AM (#11503046)
For me it does, depending on the project. (Using emacs/magit, having a dedicated buffer just for magit.)

I want to keep on top of my current branch, what is untracked, what is unstaged and staged, quick diffing, etc. It actually helps a lot with productivity since I don't have to actively query for this information when it's all in one screen.

If I used another editor, I would like to have similar features. Maybe it can be done, but I am quite fluent in magit already, and one major thing keeping me from moving to another text editor for my current projects (if it actually mattered.)

Re:Visual Studio Code 1.0 by Retra on Thursday April 14, 2016 @07:17PM (#11501003)
This is something I really do not understand. I can switch to my terminal, build, run, stage, commit, push all in like 5 seconds. As well as anything else I need to do in the terminal.

The only 'plugins' I use are a keyboard shortcut (cmd+space) which puts me in a terminal window and rupa/z[1] for jumping into a project directory.

[1] https://github.com/rupa/z

Re:Visual Studio Code 1.0 by jhasse on Thursday April 14, 2016 @08:54PM (#11501377)
Let's say you look at `git diff` and notice something needs to be changed. What do you do now? You need to quit, open the file, find the line, do the change, save and quit. Now you need to reopen git diff and scroll to the old position. This all takes a lot more than 5 seconds on the terminal.

Another scenario: You type `git status` and see a file called `src/a/very/long/path/file.c` hasn't been staged yet. Now you need to type that file path for git add or git diff. Takes more than 5 seconds, but it's just a simple click on a + symbol in VS Code.

Re:Visual Studio Code 1.0 by thewhitetulip on Thursday April 14, 2016 @03:23PM (#11499606)
1. atom is slow and clunky it hangs when I paste a 10000 line sql insert statements 2. sublime text: sorry didn't try

vscode's benifits:

blazingly fast modern design works on linux/mac too little features like ctrl+P which lets you to jump to functions rather than play with files, I didn't know any other editor which allowed this feature to be there.

It is a great way to code if you don't want or can't use vi/emacs, I don't have the luxury to learn all the nook and corners of emacs, I started using Go plugin in vscode and today I have built go apps and written partially completed book: http://github.com/thewhitetulip/web-dev-golang-anti-textbook...

i tried giving vi a chance, but nope. couldn't bear it for more than a day, large webapps require a UI IDE, vscode > everything else I tried till now

Re:Visual Studio Code 1.0 by thedz on Thursday April 14, 2016 @04:08PM (#11499926)
> blazingly fast modern design works on linux/mac too little features like ctrl+P which lets you to jump to functions rather than play with files, I didn't know any other editor which allowed this feature to be there.

Literally every other popular code editor supports some form of "go to symbol".

Re:Visual Studio Code 1.0 by thewhitetulip on Friday April 15, 2016 @12:04AM (#11502035)
"Some other go to symbol" It is obvious I didn't use intellij and pycharm and stuff like that, but the ones I did use, kate, gedit, eclipse, notepad++ didn't let me drop into a function "With ease" yeah you can use that feature in eclipse, but it isn't with ease, maybe it is because I am so biased for vscode. We'll never know, but the thing is I feel productive typing into vscode than I ever had with some other editor I tried.

Go ahead and downvote it, but after all every programmer worth his/her salt does realize that the choice of IDE/text editor is ultimately a personal opinion, so long as you as a person are comfortable using it, that is good for you, it does not make a tad bit of difference to anyone else in the world.

Re:Visual Studio Code 1.0 by eropple on Friday April 22, 2016 @03:02AM (#11547497)
I downvoted you for your brutal incuriosity, not for your opinion.
Re:Visual Studio Code 1.0 by kreek on Thursday April 14, 2016 @04:09PM (#11499943)
> features like ctrl+P which lets you to jump to functions rather than play with files, I didn't know any other editor which allowed this feature to be there

IntelliJ