News for hackers. Stuff that matters.
Re:Visual Studio Code 1.14 released by dbattaglia on Tuesday July 11, 2017 @02:35PM (#14746759)
If you happen to be using VS Code for Ruby, https://code.visualstudio.com/updates/v1_14#_auto-indent-on-... is a game changer.

Basically, when you type "end" it will automatically indent it for you, the same way it does for curly braces on C style languages. Seems like a small thing but it's fairly maddening after a while having to press shift+tab or return after typing "end".

Re:Visual Studio Code 1.14 released by konart on Thursday July 13, 2017 @09:15AM (#14760937)
As a Sublime user - I was quite suprised when I tried VS Code and learned it couldn't do this.

Now, if only they improve highlighting. In sublime if you select variable - only variables with same name will be hightlighted. VS Code highlights all occurances of the said string. So if you have variable r for IO.Reader or something - al occurances of r will be highlighted.

Re:Visual Studio Code 1.14 released by jug on Tuesday July 11, 2017 @02:46PM (#14746852)
Also a god send for Visual Basic developers doing their "End If", "End Function", not to mention "End Sub". :D
Re:Visual Studio Code 1.14 released by dbattaglia on Tuesday July 11, 2017 @02:49PM (#14746885)
Exactly... Life's already hard enough on them as it is. :)
Re:Visual Studio Code 1.14 released by piaste on Tuesday July 11, 2017 @03:12PM (#14747079)
VB dev here:

We don't actually type those, Visual Studio adds them automatically when we hit enter.

But we appreciate the thought, and we're happy that Ruby is halfway there now :)

Re:Visual Studio Code 1.14 released by dbattaglia on Tuesday July 11, 2017 @03:43PM (#14747338)
Exactly, regular Visual Studio has done this forever, but Visual Studio Code acted poorly on any language that uses words as block delimiters.

As someone who's done C# and VB for well over 10 years before Ruby I definitely miss a lot about regular Visual Studio. It's nice to see VS Code evolving into a solid alternative for non Windows users while staying light and lean at the same time.

Re:Visual Studio Code 1.14 released by rezistik on Tuesday July 11, 2017 @02:55PM (#14746940)
No editor seems to handle ruby very well, why do I get an automatic closing bracket but no automatic end? I don't have to write a 1 char closing bracket why do I need to write a 3 char end?
Re:Visual Studio Code 1.14 released by kwood on Tuesday July 11, 2017 @03:37PM (#14747299)
You don't have to type "end". Shameless self plug: I wrote an extension that closes everything automatically, inspired by a plugin for vim with the same name: endwise[1]

It's not 100% done yet, support for other languages is still missing. But it works.

[1]: https://marketplace.visualstudio.com/items?itemName=kaiwood....

Re:Visual Studio Code 1.14 released by dbattaglia on Tuesday July 11, 2017 @05:53PM (#14748422)
This is great! Really helps fill one of the most annoying gaps in writing Ruby compared to, say, C# in full Visual Studio.
Re:Visual Studio Code 1.14 released by papa-whisky on Tuesday July 11, 2017 @10:35PM (#14749747)
Super handy, thanks for this!
Re:Visual Studio Code 1.14 released by rezistik on Wednesday July 12, 2017 @12:23PM (#14753845)
Thank you!
Re:Visual Studio Code 1.14 released by lazarus101 on Wednesday July 12, 2017 @06:52AM (#14751469)
Re:Visual Studio Code 1.14 released by tonerdo on Tuesday July 11, 2017 @02:57PM (#14746950)
Anyone have any idea what theme they use in the gif that demonstrates the ruby auto-indent feature?
Re:Visual Studio Code 1.14 released by mattbierner on Tuesday July 11, 2017 @04:13PM (#14747621)
Re:Visual Studio Code 1.14 released by dbattaglia on Tuesday July 11, 2017 @04:53PM (#14747959)
I've been using "Atom One Dark" which is also pretty similar

https://marketplace.visualstudio.com/items?itemName=akamud.v...

Re:Visual Studio Code 1.14 released by jamesgeck0 on Thursday July 13, 2017 @01:19PM (#14763137)
I'd also like to know the name of the theme in the "Manage your .gitignore file" section.

https://code.visualstudio.com/images/1_14_gitignore.gif