r/java • u/MikGue • Sep 19 '16
Java Language Support for Visual Studio Code has landed
http://developers.redhat.com/blog/2016/09/19/java-language-support-for-visual-studio-code-has-landed/15
u/oweiler Sep 19 '16
VS Code never ceases to amaze me!
0
Sep 20 '16
[deleted]
2
u/NDDevMan Sep 20 '16
It does have some debugging. But it depends on what language. Web based languages it does really well. People are building debug support for other things. I think there is even some level of gdb support
0
3
u/Greymarch Sep 20 '16
Love Visual Studio Code in OS X. Have always wanted the ability to write, debug and run standard java (NOT javascript) from VSC in OS X. Installed the above extension, and found the following extension which allows you to debug and run java from VSC:
https://marketplace.visualstudio.com/items?itemName=donjayamanne.javadebugger
Followed the directions as best as I could. Trying to run my java app, and I am getting a bunch of "error: cannot find symbol" errors in the debug-console window when I run my java app in VSC from OS X. App runs great in eclipse. What am I missing in either VSC or somewhere in OS X so I can properly run java code from VSC in OS X?
2
u/jebblue Sep 20 '16 edited Sep 20 '16
On Ubuntu 16 running inside VirtualBox on Windows 10...I just get a black window. To be fair, Chrome fails in this scenario too unless I start it without 2d canvas or some flag setting, can't remember.
Update: I fixed it by turning off 3D acceleration, Visual Code runs correctly now.
2
u/antsy_pantsy_ Sep 22 '16
Yup, that would be 3D acceleration. You would start Chrome with
google-chrome --disable-gpu
2
u/DuncanIdahos8thClone Sep 20 '16
Serious question: What's the point?
0
u/Altaflux Sep 20 '16
Better than eclipse and netbeans, competitor to Intellij. Between only 2 robust Java IDEs having a third one is very good.
1
u/sergio_petrucci Sep 19 '16
Anyone knows what the code is in the screenshot? Looks exactly like something I need for my game.
7
u/AnAirMagic Sep 20 '16
The project name looks like
vertx-game-server. The package that's currently open is namedcom.redhat.middleware.keynoteand the class isServerVerticle extends AbstractVerticle. It might be a local demo project they have created.But it looks like they are using vertx. Are you aware of https://vertx.io? Take a look at https://github.com/vert-x3/vertx-examples too.
1
1
u/Chaoslab Sep 20 '16
I still remember Visual J++.
(Won a copy of the MS dev subscription at Dev Days 96. Microsoft even demo'd my Javaders game at the conference)
Good too see.
1
u/Puff_the_magic_luke Sep 20 '16
It's like I've gone back in time to 1998 and VS J++ was the best dev environment
-4
Sep 20 '16
THANK GOD, I LOVE VISUAL.
Its so simple and easy to navigate but so complex.
I remember when I tried learning C++ and used visual the hardest part was the code and not learning the IDE unlike many java IDE's, unless I'm just retarded.
2
u/vytah Sep 20 '16
Unless you were trying to learn C++ within the last year, you are confusing Visual Studio with Visual Studio Code.
1
Sep 20 '16
I think I tried learning cpp in 2015, but stopped after a month or so because I started taking a class. I just saw VS in the title and got super excited, however the idea of VS Code also makes me excited because its modular and I cant seem to get my head around any IDE besides maybe Jcreator
9
u/jbu311 Sep 20 '16
Someone correct me if I'm wrong, since I've only started playing with it, but it seems like it doesn't support contextual/smart code completion? I expect if I type in "this." and wait it should present some member functions and variables to auto-complete, but instead I'm only seeing auto-completion of simple things like variable names that are within the file and no member functions.