News for hackers. Stuff that matters.
Re:Visual Studio Code 1.4 by was_boring on Thursday August 04, 2016 @07:09PM (#12229089)
I've been using VSC as my daily driver for a few months now and it's great -- even on nightly builds. The most powerful features is the tasks.json. Once I learned to use it (the docs aren't good on it), I was able to utilize it to bring a more cohesive experience across many code bases.

I enjoy the fact that it gives an integrated experience and allows community extensions. This is a big change from atom where everything must be cobbled together, hope that it works and will break. My hope is that the MS team will pitch in on the most popular extensions per language and take them to the next level as well.

To top it off, it's one of the most open development processes I've ever seen. They have a clearly defined roadmap, release schedule and even tell you exactly how they work in the wiki (https://github.com/Microsoft/vscode/wiki). It's fantastic to see such a large company open up like this.

Re:Visual Studio Code 1.4 by jsingleton on Friday August 05, 2016 @07:32AM (#12231433)
On Windows I still prefer the full VS but on OS X Code is great.

Full VS is a lot lighter than it used to be. There is a preview of 15 (confusingly, the next version after 2015) available now.

"Visual Studio “15” Preview 3 (which is different from Visual Studio 2015 Update 3)" - naming is hard.

https://blogs.msdn.microsoft.com/visualstudio/2016/07/07/vis...

Re:Visual Studio Code 1.4 by asimuvPR on Thursday August 04, 2016 @10:07PM (#12229657)
Me too. I was a bit skeptic at first. Been a long time vim user but wanted to try something new. I now use it to code Python (I write a lot of it). It works very nicely. So much that I'm in the process of making it the official company -wide text editor for python at work.
Re:Visual Studio Code 1.4 by sho_hn on Thursday August 04, 2016 @11:30PM (#12229878)
I'm curious, what's the thought behind having an official company-wide text editor? The companies I've worked for usually take the route of "leave their choice in tools up to them", which I appreciate.
Re:Visual Studio Code 1.4 by dspillett on Friday August 05, 2016 @03:32AM (#12230619)
As long as it is implemented as a reference standard and not enforced, I think it is a good idea. The official tools are built into the standard PC build that new starters get, and inexperienced new starts would be expected to use it as company documentation will be optimised for the "company standard" tools. Experienced workers should be free to use what-ever they like as long as their output is 100% compatible with the company standard (so doesn't pose any collaboration difficulties).
Re:Visual Studio Code 1.4 by asimuvPR on Friday August 05, 2016 @01:21AM (#12230221)
We needed a good standard setup that fit our needs. People can opt to use something else as long as their code meets the style guidelines. But its easier to use the same tool. We share tips and tricks a lot. That way we improve our workflow as a whole.

Why not vim itself? We tried it. They are more used to GUI centric editors. (shrugs)

Re:Visual Studio Code 1.4 by Mao_Zedang on Friday August 05, 2016 @06:59AM (#12231295)
While I agree with what you are saying, editor config is a good tool to enforce coding standards across multiple editors (as a bonus it already supports VS Code)

http://editorconfig.org/

Re:Visual Studio Code 1.4 by asimuvPR on Friday August 05, 2016 @09:08AM (#12231983)
Thanks for the link. I will check it out.
Re:Visual Studio Code 1.4 by sotojuan on Friday August 05, 2016 @12:01AM (#12229969)
I never got this either especially when editorconfig exists.
Re:Visual Studio Code 1.4 by ebrewste on Friday August 05, 2016 @12:44AM (#12230101)
I can understand it, if it's not too draconian. It's nice for some central power to have coherent walktnroughs on how to set up an editor to lint, etc. If another dev wants to use a different editor and can make it work, it's fine by me, but I can't see anyone "supporting" every editor out there.
Re:Visual Studio Code 1.4 by victorhooi on Friday August 05, 2016 @04:05AM (#12230724)
Out of curiosity, how did you get it working for Python?

Last time I checked, there's no official Python support. There are some unofficial plugins, but none of them have true Intellisense support for Python. (e.g. a la Pycharm, or even Visual Studio Tools for Python).

I know they mentioned they were working in it a few months ago on a HN thread, but I haven't heard anything about it since.

Re:Visual Studio Code 1.4 by slammers on Friday August 05, 2016 @07:10PM (#12236288)
There is a doc page describing the features supported by popular extensions. https://code.visualstudio.com/docs/languages/python

Lots of usage out of the top extension. Not quite to PyCharm level, but getting there.

Re:Visual Studio Code 1.4 by flukus on Thursday August 04, 2016 @11:34PM (#12229894)
As part of the Visual Studio Code effort, the .net intellisense was split into a stand lone server to be used from any editor. So I'm going the opposite way, hoping to do more and more in vim and less in VS.
Re:Visual Studio Code 1.4 by Jaruzel on Friday August 05, 2016 @05:00AM (#12230879)
Do you have more details on this? I'd love to be able to use the .NET intellisense in something other than Visual Studio. Thanks!
Re:Visual Studio Code 1.4 by loraderon on Friday August 05, 2016 @05:53AM (#12231050)
Re:Visual Studio Code 1.4 by ctolkien on Friday August 05, 2016 @08:19AM (#12231669)
Omnisharp existed as a community project well before VS Code. It's great to see MS adopt and build on it.
Re:Visual Studio Code 1.4 by modarts on Friday August 05, 2016 @12:11AM (#12229997)
What's the rationale behind forcing people to use an editor (especially a specific editor for a single language)?
Re:Visual Studio Code 1.4 by coldtea on Friday August 05, 2016 @07:10AM (#12231337)
To get stubborn people to try new tools for a change.

Of course their goal is conformity, easier management (e.g. everybody gets the same linters, code formatters, etc), but the above is a nice side benefit too.

There are tons of people using some antiquated editor and swearing by it, that get amazed when they are forced (by a job) to use a modern IDE and see what it can do for them.

And I'm not talking about Emacs etc -- which can do a lot if you set it up right, I talk about people coding e.g. Java with Slickedit or whatever. Heck even Vim users are sometimes surprised of the convenience (and turn-key use) of embedded debugger, build system, actual AST-based auto-completion, refactoring tools, etc.

Because when we code, actually editing text is the least of our worries, and yet this is what most simple "programming editors" focus on -- it's not like we're building huge ASCII art paintings...

Re:Visual Studio Code 1.4 by asimuvPR on Friday August 05, 2016 @01:23AM (#12230227)
They can use anything as Long as the code meets the requirements. But having one official tool makes it easy to work together (in our case).
Re:Visual Studio Code 1.4 by cdr on Friday August 05, 2016 @03:37AM (#12230627)
I tried it for python but the pip panel almost immediately soured me on it. Whenever I tried typing something in it, it would lock up the whole program for minutes at a time - absolutely atrocious.
Re:Visual Studio Code 1.4 by asimuvPR on Friday August 05, 2016 @04:19AM (#12230768)
I use the regular command line. The VSC terminal is currently not that good.
Re:Visual Studio Code 1.4 by Scarbutt on Friday August 05, 2016 @12:14AM (#12230003)
How did you manage to leave vim keys so easily?
Re:Visual Studio Code 1.4 by u02sgb on Friday August 05, 2016 @05:31AM (#12230988)
There's a vim key extension that's pretty good too.
Re:Visual Studio Code 1.4 by asimuvPR on Friday August 05, 2016 @01:14AM (#12230195)
I still usa vim a lot, too.
Re:Visual Studio Code 1.4 by infogulch on Friday August 05, 2016 @03:13PM (#12235035)
Would you expand on tasks.json? Where would I learn more besides docs, are there any specific source files? Does it support passing variables like the current file? Would you mind sharing your tasks.json?

Edit: it looks like an issue about tasks.json presents some good examples: https://github.com/Microsoft/vscode/issues/981

Edit2: and here's the information about variables: https://code.visualstudio.com/docs/editor/tasks#_variable-su...

Re:Visual Studio Code 1.4 by lobster_johnson on Friday August 05, 2016 @05:26PM (#12235849)
Re:Visual Studio Code 1.4 by jhofker on Friday August 05, 2016 @12:31AM (#12230055)
What are some of the custom tasks you've been using in it? I've found I'm using the integrated terminal significantly more than I ever did with the tasks, but maybe I'm missing something really cool.
Re:Visual Studio Code 1.4 by was_boring on Friday August 05, 2016 @12:47AM (#12230109)
I work across many code bases and technology stacks so I use it to standardize tasks such as: build, test, continuous testing, running and linting. Without it I would have to remember the command for each code base.
Re:Visual Studio Code 1.4 by IshKebab on Friday August 05, 2016 @07:12AM (#12231353)
How is that different to normal IDEs?