Simple Java-Extension is a VS Code extension that simplifies Java programming. It provides code snippets, compiler integration, and an enhanced development experience.
Before using this extension, you need to install the Java compiler. You can download the Java Development Kit (JDK) from the official Oracle website: Java SE Downloads
- Launch Visual Studio Code.
- Go to the Extensions view (Ctrl+Shift+X).
- Search for "Simple Java-Extension".
- Click on the "Install" button.
- Open a Java file in Visual Studio Code.
- Use the provided code snippets to insert common Java patterns.
- Click the "Run" button or use the
java-extension.brjcommand to compile and run your Java code.
The extension provides the following code snippets:
!jmain: Java template for a class with amainmethod.!jif: Java template for anif-else if-elsestatement.!jswitch: Java template for aswitchstatement.!jwhile: Java template for awhileloop.!jdowhile: Java template for ado-whileloop.!jfor: Java template for aforloop.!jmethod: Java template for a method.!jinterface: Java template for an interface.!jclass: Java template for a class.
![]() Nithma Fernando Contributed the icon of Java-Extension. |
Contributions are welcome! If you encounter any issues or have suggestions for improvement, please report them in the issue tracker.
This extension is licensed under the MIT License.

