How to set up Java in Visual Studio Code

preview_player
Показать описание
How to install Java with Visual Studio Code (vscode) in under 5 minutes.

Open vscode, and create new file. Name it whatever you want, but be sure to include the .java extension.

class Test {
public static void main(String[] args) {
}
}

Simple click the run button and you should see the output "HELLO WORLD JAVA".

You can also create a Java project by clicking Ctrl + Shift + P at the same time. Type in java create, and click on the Java: Create Java Project.

And, there you have it! How to setup Java for Visual Studio Code in under 5 minutes.

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

If you want to disable the parameter help box, in VSCode, on the bottom left there is a gear icon. Click on that, select settings. Search for "Java Inlay". Scroll down to where you see:

*JavaScript › Inlay Hints › Parameter Names: Enabled*

In the dropdown menu, select None. Scroll down a bit further and you'll see another:

*Java › Inlay Hints › Parameter Names: Enabled*
*Java › Inlay Hints › Parameter Names: Exclusions can be used to disable the inlay hints for methods.*

Once again, in the dropdown menu, select None.

Alternatively, you can open the settings.json file. To open this, press Ctrl+Shift+P at the same time, type in "settings.json" and select "Preference: Open User Settings (JSON)". Add this to the JSON file:

"none",

KennyYipCoding
Автор

At first, the terminal was unresponsive, but closing and opening VSC fixed my issue. Great video, man thx a lot!

shades
Автор

best tutorial ever. Best short and sweet and correctly taught how to install. Thank you so much sir.

bimaltwayana
Автор

Thank you so much for providing this video, I recently have been struggling to figure out how to run java in visual studio code, this video helped me figure it out, I just liked and subscribed.

DrBiography
Автор

I really appreciate your tutorials Kenny, I was able to successfully install the java code pack for vs code. 😉🙂🙂

williamkiarie
Автор

Direct, and easy to understand, very demure, very classic, very excellent!

jld_
Автор

Like your style, no bs, straight to the point.

alanslc
Автор

this one better be helpful cuz I've been figuring how to run a java code on visual studio.

bunny
Автор

I'm getting an error like. java is not recognized as internal or external command .

CODINGWITHDINKAR
Автор

thank you, this video helped me a lot. I don't really know English, but you do useful things. Thanks❤

qlfygph
Автор

Thank you for making this video! I was stuck for a bit but you're very clear in your explanation! Thanks again!

karlatorres
Автор

You do great job sir you easily tell how this thing is going to be done on windows thanks for your guidance ☺️

moviehollywood
Автор

thank you so much it's a easy process than other one i download it 2 year ago .

AdachiYuu
Автор

As a man who hates eclipse, thank you

Nornfang
Автор

Finally a 4k tutorial lol
appreciate it

russel
Автор

I'm just trying to run the Hello World example, but when I click on Run, I get "Homework1.java is a non-project file, only syntax errors are reported" in the Problems tab.

DavidCourtney
Автор

Thank you sir, I can run the codes now. Very helpful.

Uday_Aravind
Автор

Wow, thanks! Somehow Eclipse doesn't work but VSC works perfectly!

MihNguyen
Автор

Thank you very much for the great video! it has helped me a lot. Many, many thanks!

laloquera
Автор

easy to understand. Thank you so much.

Chanmeow-rleh