VSCode-Anywhere
  • Introduction
  • Installation
    • Requirements
      • Windows requirements
      • Linux requirements
      • MacOS requirements
    • Quickstart
    • Advanced
      • Windows installation
      • Linux installation
      • MacOS installation
  • Modules
    • Module installation
    • Module update
    • Module settings
      • Global settings
        • brew settings
        • chocolatey settings
        • env settings
        • msys2 settings
        • nix settings
        • scoop settings
        • vscode settings
        • zeal settings
    • Modules list
      • Ansible
      • Bash
      • C / C++
      • C#
      • Custom
      • Deepcode
      • Docker
      • Fonts
      • Git
      • Go
      • HTML
      • Java
      • JavaScript / TypeScript
      • Markdown
      • Perl
      • PHP
      • Platformio
      • PowerShell
      • Puppet
      • Python2
      • Python3
      • Remote
      • Rest
      • ReStructuredText
      • Ruby
      • Saltstack
      • VSCode
    • Custom modules
  • Structure
    • apps
    • conf
      • saltstack
        • conf-offline
        • conf
        • pillar
        • states
    • tools
      • env
      • install
      • link
      • update
      • vscode
      • vscode-anywhere
  • Tutorials
    • Youtube tutorials
  • Release notes
    • V2
      • V2.0.0
    • V1
  • FAQ
Powered by GitBook
On this page
  • About
  • Installation
  • Requirements
  • VSCode
  • VSCode extensions
  • VSCode settings
  • VSCode keybindings
  • Software
  • Windows software
  • Linux software
  • MacOS software
  • Documentation
  • VSCode-Anywhere
  • Environment
  • Specific settings

Was this helpful?

  1. Modules
  2. Modules list

Java

PreviousHTMLNextJavaScript / TypeScript

Last updated 4 years ago

Was this helpful?

About

Java is a general-purpose programming language that is class-based, object-oriented, and designed to have a few implementation dependencies as possible.

Installation

vscode-anywhere:
    java:
        enabled: True

Requirements

No requirements.

VSCode

VSCode extensions

redhat.java

vscjava.vscode-java-debug

vscjava.vscode-java-test

vscjava.vscode-maven

vscjava.vscode-java-dependency

VisualStudioExptTeam.vscodeintellicode

shengchen.vscode-checkstyle

redhat.vscode-xml

pivotal.vscode-spring-boot

vscode-anywhere:
    java:
    enabled: True
    spring_boot: True

vscjava.vscode-spring-initializr

vscode-anywhere:
    java:
        enabled: True
        spring_boot: True

vscjava.vscode-spring-boot-dashboard

vscode-anywhere:
    java:
        enabled: True
        spring_boot: True

redhat.vscode-quarkus

vscode-anywhere:
    java:
        enabled: True
        quarkus: True

SummerSun.vscode-jetty

vscode-anywhere:
    java:
        enabled: True
        jetty: True

adashen.vscode-tomcat

vscode-anywhere:
    java:
        enabled: True
        tomcat: True

VSCode settings

Global settings

{
    "java.semanticHighlighting.enabled": true
}

Windows settings

{
    "java.home": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\openjdk\\current",
    "xml.java.home": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\openjdk\\current"
}

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux settings

{
    "java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec",
    "xml.java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec"
}

MacOS settings

{
    "java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec",
    "xml.java.home": "/home/linuxbrew/.linuxbrew/opt/openjdk/libexec"
}

VSCode keybindings

Software

Windows software

scoop

chocolatey

Linux software

brew

nix

MacOS software

brew

Documentation

VSCode-Anywhere

Environment

Windows environment

PATH: C:\VSCode-Anywhere\apps\scoop\apps\openjdk\current\bin;C:\VSCode-Anywhere\apps\scoop\apps\maven\current\bin
JAVA_HOME: C:\VSCode-Anywhere\apps\scoop\apps\openjdk\current
JDK_HOME: C:\VSCode-Anywhere\apps\scoop\apps\openjdk\current

If quarkus is enabled, the following PATH will be append:

C:\VSCode-Anywhere\apps\scoop\apps\graalvm\current\bin

If jetty is enabled the following environment will be set:

JETTY_HOME: C:\SCode-Anywhere\apps\scoop\apps\Chocolatey\lib\jetty\tools\jetty

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux environment

PATH: /home/linuxbrew/.linuxbrew/opt/openjdk/bin
JAVA_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexec
JDK_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexec

If tomcat is enabled the following environment will be set:

CATALINA_BASE: /home/linuxbrew/.linuxbrew/opt/tomcat/libexec
CATALINA_HOME: /home/linuxbrew/.linuxbrew/opt/tomcat/libexec

If jetty is enabled the following environment will be set:

JETTY_HOME: /home/linuxbrew/.linuxbrew/opt/jetty/libexec

MacOS environment

PATH: /home/linuxbrew/.linuxbrew/opt/openjdk/bin
JAVA_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexec
JDK_HOME: /home/linuxbrew/.linuxbrew/opt/openjdk/libexec

If tomcat is enabled the following environment will be set:

CATALINA_BASE: /home/linuxbrew/.linuxbrew/opt/tomcat/libexec
CATALINA_HOME: /home/linuxbrew/.linuxbrew/opt/tomcat/libexec

If jetty is enabled the following envrionment will be set:

JETTY_HOME: /home/linuxbrew/.linuxbrew/opt/jetty/libexec

Specific settings

spring_boot

vscode-anywhere:
    java:
        enabled: True
        spring_boot: True

quarkus

vscode-anywhere:
    java:
        enabled: True
        quarkus: True

tomcat

vscode-anwyhere:
    java:
        enabled: True
        tomcat: True

jetty

vscode-anwyhere:
    java:
        enabled: True
        jetty: True

Change enable from False to True in the java section (cf ).

You can also take a look at the .

For more details read the .

This provides Java language support.

This provides a lightweight Java debugger for Visual Studio Code.

This allow to run and debug Java test cases in Visual Studio Code.

This allows to manage Maven projects, execute goals, generate a project from the archetype, improve the user experience for Java developers.

This manages Java Dependencies in VSCode.

This provides AI-assisted development features for Java.

This provides real-time feedback about Checkstyle violations and quick fix actions.

This provides support for creating and editing XML documents, based on the LSP4XML Language Server, running with Java.

This provides validation and content assist for Spring Boot application.properties, application.yml properties files. As well as Boot-specific support for .java files.

This extension will be installed only if you had set spring_boot to True in your file:

This quickly generates a Spring Boot project in Visual Studio Code (VS Code). It helps you to customize your projects with configurations and manage Spring Boot dependencies.

This extension will be installed only if you had set spring_boot to True in your file:

is an explorer in the side bar, you can view and manage all available Spring Boot projects in your workspace. It also supports the features to quickly start, stop or debug a Spring Boot project.

This extension will be installed only if spring_boot is enabled in your file:

This provides support for Quarkus development.

This extension will be installed only if quarkus is enabled in your file:

This allows to start and run or debug your war package on Jetty.

This extension will be installed only if jetty is enabled in your file:

This allows to debug or run your java war package in Apache Tomcat.

This extension will be installed only if jetty is enabled in your file:

No .

This package will be installed only if tomcat is enabled in your file.

This package will be installed only if quarkus is enabled in your file.

This package will be installed only if you had set jetty is enabled in your file.

This package will be installed only if jetty is enabled in your file.

This package will be installed only if tomcat is enabled in your file.

This package will be installed only if quarkus is enabled in your file.

This package will be installed only if jetty is enabled in your file.

This package will be installed only if tomcat is enabled in your file.

If set to True, it will install additional components for :

If set to True, it will install additional components for :

If set to True, it will install additional components for :

If set to True, it will install additional components for :

module installation
VSCode-Anywhere java module configuration
official documentation
extension
extension
extension
extension
extension
extension
extension
extension
extension
extension
Spring Boot Dashboard
extension
extension
extension
keybindings
openjdk
maven
gradle
tomcat
graalvm
jetty
openjdk
maven
maven-completion
maven-shell
gradle
gradle-completion
jetty
tomcat
graalvm11-ee
openjdk
maven
maven-completion
maven-shell
gradle
gradle-completion
jetty
tomcat
Java_SE14
Spring Boot
Quarkus
Tomcat
Jetty
Java
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls
vscode-anywhere.sls