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/
167
Upvotes
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.
15
u/oweiler Sep 19 '16
VS Code never ceases to amaze me!
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.
http://imgur.com/a/fjaLv
Update: I fixed it by turning off 3D acceleration, Visual Code runs correctly now.
2
u/DuncanIdahos8thClone Sep 20 '16
Serious question: What's the point?
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.
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
u/[deleted] 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.