Skip to main content

Installing Visual Studio Code for Windows Java Developer Easily

  Visual Studio Code is very popular for developers and Java is the most popular programming language in present world.

 So in this article, I will show how to set up Visual Studio Code for java in Windows 10 very easily.

VS Code

 VS Code Team released Visual Studio Code with JDK. This is very cool because installing JDK need some configurations but in this download link that kinds of uncomfortable process removed. (downlaod jdk and install / configure environment / configure visual studio code)

Let's see how comfortable it is.

Download and Install Visual Studio Code for Java

  1. Click Download and Install the Coding Pack for Java - Windows via this link
  2. Install Coding Pack for Java
    Install Coding Pack for Java
  3. Installing Components
    Installing Components
  4. Finished Setup Wizard
    Finished Setup Wizard
  5. Now you can see Launched Visual Studio CodeNow you can see Launched Visual Studio Code

That's It!! Cool! Done!

Check if java code works in Visual Studio Code below.

Java Code Test in Visual Studio Code

  1. Create java file (Application.java)
  2. Copy & Paste code below

class Application {
    public static void main(String args[]) {
        System.out.println("Hello, World");
    }
}
  1. You can see Run|Debug above main function in the visual studio code editor.
    You can see Run|Debug above main function in the visual studio code editor.
  2. Click Run
  3. Output in terminal windows
    Output in terminal windows

Done.

So, installation validated. (installed Visual Studio Code and JDK / configured all with few clicks)

What happened when we install Visual Studio Coding Pack for Java - Windows

  1. Visual Studio Code installed
    1. Installed Path: C:\Users\username\AppData\Local\Programs\Microsoft VS Code\Code.exe
  2. JDK Installed
    1. Installed Path: C:\Users\username\AppData\Local\Programs\AdoptOpenJDK\jdk-11.0.8.10-hotspot
  3. Visual Studio Code Configured for JDK
    Visual Studio Code Configured for JDK
  4. Visual Studio Java Extension plugin installed
    Visual Studio Java Extension plugin installed

All these steps done automatically.

Now Enjoy your journey for java coding~ 😉

References

Official Site: https://code.visualstudio.com/
Download Site: https://code.visualstudio.com/download

Comments

Popular posts from this blog

Visual Studio Code Prettier vs Beautify plugin

    There are two famous beautify code plugins for Front-end developers in Visual Studio Code. So, I'd like to compare what plugin is better to use for me.   The plugins are First, Prettier Second, Beautify. As you can see, Prettier is more popular than Beautify and Prettier supports more languages than Beautify.  Prettier  Install count: 8,628,031 language support:  JavaScript · TypeScript · Flow · JSX · JSON CSS · SCSS · Less HTML · Vue · Angular GraphQL · Markdown · YAML Beautify  Install count: 5,510,943 language support:  javascript, JSON, CSS, Sass, and HTML Prettier has more strict options users should use while Beautify let users do more free way. But I'd like to use Prettier for now because I don't need free style and Prettier supports more langua...

Can't install Eclipse plugins due to sun.security.validator.ValidatorException

   Sometimes eclipse cannot connect to marketplace or plugin sites for installing plugins because of security validator exception Problem: sun.security.validator.ValidatorException or sun.security.validator.ValidatorException: PKIX path building failed   Resolution: tuststore does not contain the certificate of the SSL service you're connecting to This is due to corporate environments where your workstation is intercepted by proxy, firewall or something that inspects https traffic. or the jdk version does not include the SSL service you're connecting to. jdk release with certificates in the jre/lib/security/cacerts file. the certificates are increase while jdk version goes up How To Solve Download  Keystore Explorer  and Install Open the application (Run as administrator) Examine > Examine SSL > Co...

Visual Studio Code pin on 'open editors' (file) tab

It was released in May 2020 release and updated in September 2020 release. Eclipse doesn't have this functionality at this time.   When I program something with many files, I really need this function. Most editors has 'close Others', 'close to the right' options. But with this pin file and 'close All', I could manage opened files easily. See below Introduce on September 2020 release. Pinned tabs also show a new "pinned" icon to allow you to unpin with one click. This icon will also appear in the "Open Editors" view. Theme:  GitHub Light Also they added compact options for editor tabs. A new setting  workbench.editor.pinnedTabSizing  allows you to configure how large a pinned tab should appear: normal : a pinned tab inherits the look of other tabs (new default) shrink : a pinned tab shrinks to a fixed size showing parts of the editor label compact : a pinned tab will only show as icon or first letter of the ed...