description - How to install Java with Visual Studio Code (vscode) in under 5 minutes.
Install Visual Studio Code: code.visualstu...
Install Java Coding Pack: code.visualstu...
Open vscode, and create new file. Name it whatever you want, but be sure to include the .java extension.
Ex) Create a file named Sachithra.java and add the following code. Make sure the file name is exactly the same as the class name.
class Sachithra {
public static void main(String[] args) {
System.out.println("HELLO WORLD JAVA");
}
}
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.
Негізгі бет How to install Java with Visual Studio Code
Пікірлер: 2