Java in Visual Studio Code (Getting Started)
HTML-код
- Опубликовано: 15 окт 2024
- Writing Java with Visual Studio Code
This tutorial shows you how to write and run a simple Hello World program in Java with Visual Studio Code. It also covers a few advanced features, which you can explore by reading other documents in this section.
With the Java Extension Pack, we also provide an easy way for you to start Java with VS Code by using the command Java: Getting Started from the Command Palette (Ctrl+Shift+P). This command opens a Quick Start guide as well as tips for code editing and debugging. It also has a FAQ to answer some of the most asked questions
PLEASE WATCH THIS INSTEAD:
ruclips.net/video/4p6gfrUXPxQ/видео.html
Please help, what do you do when you keep getting errors after you attempt to run any code. I'm getting: "Build failed, do you want to continue?" I'm also getting 6 problems stating scanner and system can put be resolved over and over
Please check your syntax
Thank you for this. A lot of courses assume you know have an editor and know how to compile it. Some things have changed since this video came out, but it was close enough to work
You are welcome
Hello, how did you change the font in the terminal to blue (C:\users....), and the Hello World to a different color (white)?
Also is there a way just show the output of the java program (in this case the println), without all of the (C:\users....) stuff?
thanks
4:3 and 480p. That must be a real hacker :D
it works, so why not :D
The ratio was 4:3,
but boy did it help me.
Don't forget the 15fps and the audio pulsing :P
in 2020
As a 13 year old, planning to develop games, this is very helpful, thanks
Wish I started as soon as you did. I'm 17 and I too want to become a gamedev. Best of luck man
I would recommend c# and unity tho for that
@@tobinek.3092 I'm glad I did also. Seems like a very interesting career path.
Thanks! Best of luck to you too
@@joekerr4273 yeah I learned that probably gonna take time to learn c++
How to remove annoying command before output?
While you were writing the helloworld class you suddenly jumped to using the auto generator without explaining how you enabled it. This is an important step. Please explain.
Ya idk how to either and I really want to know
How to show the output Hello World only without that long lines of word?
same doubt
Change the Debug settings to console. Default value is terminal
@@HK-th3ix please elaborate , noob here
@@DEVASHISH_RAJ I use a Mac and was able to resolve it using the steps below. I hope it helps you as well
From VS Code navigate to Preferences > Settings > Click on Debug under the User menu. Then find and click the Edit the settings.json. Set this value: "java.debug.settings.console": "integratedTerminal",
Alternatively, this is the path to edit the settings.json file
~/Library/Application Support/Code/User/settings.json
Why does it display this long path before the actual "hello world"? Is that standard or can you deactivate that? at first I thought I made a mistake..
Thanks in advance
If you dont want it to come directly after, print a new line before hand with System.out.println(" ")
Hey what shortcut do I need to download to use the auto generator for the very beginning of the code (at 8:05 when he uses it for the class part)
Java pack not install ?
There is one error which is also problem during debugs : - Couldn't start client Java Language Server
How to solve this.
Make sure you have JDK installed
@@hacked101 ya it is there in path and java home but still everytime i open vs code it pops msg that couldnt start java language client server .it points out to "language support for java by redhat" extension
Can i program in VS with java ver16?
Yes in Vs code
thanks, buddy I can solve my error from your amazing video...
You are welcome
Thanks for taking the time to do this. Helped me get set right up.
You are welcome
Thank you very much bro. Happy to learn new settings.
Always welcome
Great tutorial!
But for some reason the autoimport does not work.. Which is annoying since I am not going to remember all the imports.
does anyone know why the terminal mentions the directories before outputting Hello World?
I have this problem too i’ve tried everything and can’t seem to figure it out !
You may be my favourite programmer, just so chill, thanks:-)
No doubt, you are welcome
@@hacked101 you are jeanous
how to use the shortcut 'sout' for 'System.out.print()' ???
yes
@Rowan McAlpin Thank U, way more usefull than a "yes" hahaha
If I downloaded the jdk from java web I need to download also the 4:50 part?
Yh you should
command 'java.execute.workspaceCommand' not found getting this error
please follow the video carefully, and make sure you install the correct java extensions
@@hacked101 I did the same way as you did.
7:56 its not showing me any extensions
please follow the video carefully, or be more specific with your question
You're the man! Thank you!
You are welcome
can i use in linux this package?
Yes but you have to follow the installation for Linux
@@hacked101 Where's the installation for Linux??? Reply asap
Thank you very much for this. Finally I have a working Java IDE.
You are welcome
TEEE DEBOOO LA VIDA MIL GRACIAS!!! THANK YOU SOOOOOOOOO MUCH
You are most welcome
thank you! really helping me get started
No doubt, you are welcome
THANKS A LOT MAN YOU SAVED ME !!!!!!
You are welcome
Thanks it worked
You are welcome
480p videos in 2020. well done mate. ROFL
Thank you man!
You are welcome
Whoops, there's the run button. It's always hiding somewhere in these crazy IDE's.
Thanks
You are welcome
Thanks mate! It helped me out.
You are welcome
Thank you very much Sir for making this tutorial
You are welcome
very very thanks bro
You are welcome
This is so far the best java & visual studio code. Thank so much!!!
Thanks and stay tuned
Thanks mate, you're a fuckin OG .
I was really struggling with this shit, kept getting run time errors with the debugger extension.
Glad i can finally debug my java code👍👍👍
No doubt
Dhanywad🙏🙏🙏
He dont know hindi
Thanx Man🤟😁
You are welcome
@@RanjeetKumar-ft2sv but he replied me😁
Thank you very much.
You are welcome
thanks the best video I found and the only one that really served me.
You are welcome
Thank you very much!
You are welcome
Big thanks bro!!
You are welcome
Very Helpful, Thanks!!!
You are welcome
Nice explanation. only video a bit quite long. :D
Glad you liked it!
ty man
You are welcome
NExt video Sir??
Stay tuned, coming soon
Nice
So nice
Thank you somuch.
You are most welcome
thanks alooooooooooooot
You are welcome
Thank you
You're welcome
Video is so scuffed but helped me do what I wanted to do so thanks
Glad it helped
Thank you!
You are welcome
Thank you sir for your help
You are welcome
2020 and 480p a real hacker lol
ali g?
😃😃😃
thanks
👍
Thank you very much for this. Finally I have a working Java IDE.
Thank you!.
You are welcome
Thank you so much.
Welcome and stay tuned