How to set up Java in Visual Studio Code

Publicado el: 12 noviembre 2024
en el canal de: CodeEasy
113
4

How to install Java with Visual Studio Code (vscode) in under 5 minutes.

Install Visual Studio Code: https://code.visualstudio.com/
Install Java Coding Pack: https://code.visualstudio.com/docs/ja...

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

Create any file name with .java extension and add the following code. Make sure the file name is exactly the same as the class name.

class Test {
public static void main(String[] args) {
System.out.println("Hello, I am JAVA");
}
}

Simple click the run button and you should see the output "Hello, I am 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 #javainvscode #vscode #code #javaeclipse #eclipse #jdk


En esta página del sitio puede ver el video en línea How to set up Java in Visual Studio Code de Duración hora minuto segunda en buena calidad , que subió el usuario CodeEasy 12 noviembre 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 113 veces y le gustó 4 a los espectadores. Disfruta viendo!