How to set up Java in Visual Studio Code
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/java/java-tutorial
Open vscode, and create new file. Name it whatever you want, but be sure to include the .java extension.
Ex) Create a file named Test.java 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 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.
Java Game Programming Projects Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4Y1XQOqNsL9Fgg_p6nYhcng
JavaScript Game Programming Projects Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4bLhA-st9sC4ZthyV7nsL2Q
Subscribe for more coding tutorials 😄!
Other Videos By Kenny Yip Coding
2023-10-29 | Linear Search in Python |
2023-10-26 | Two Sum with Sorted Array |
2023-10-13 | How to set up C++ in Visual Studio Code |
2023-10-09 | Code Snake Game in Python |
2023-09-19 | Code a game in Java |
2023-08-14 | Code Minesweeper in Java |
2023-08-02 | Code Black Jack in Java |
2023-07-19 | Code Snake Game in Java |
2023-07-16 | Code Tic Tac Toe in Java |
2023-06-08 | Memory Card Game in Javascript |
2023-05-29 | How to set up Java in Visual Studio Code |
2023-05-21 | Code Doodle Jump in Javascript |
2023-05-04 | Code Breakout game in Javascript HTML CSS |
2023-05-01 | Code Pong in Javascript |
2023-02-26 | Whack a Mole Game in Javascript HTML CSS |
2023-02-19 | Create Flappy Bird clone in Javascript HTML CSS |
2023-01-11 | Code Space Invaders in Javascript HTML CSS |
2023-01-07 | How to code Google Chrome Dinosaur Game in JavaScript HTML CSS |
2022-12-27 | How to add a Custom Domain on Github Pages |
2022-06-19 | How to Remove the File Extension From the URL on Github Pages |
2022-06-19 | How to Host a Website On Github Pages |