/vscode-java

Java Language Support for Visual Studio Code

Primary LanguageTypeScriptEclipse Public License 1.0EPL-1.0

Build Status

Language support for Java ™ for Visual Studio Code

Provides Java ™ language support via java-language-server, which utilizes Eclipse ™ JDT.

Quick Start

  1. Install the Extension
  2. If you do not have a Java 8 Runtime on current system path or JAVA_HOME is not correctly set to point to one
    • Download and install a Java 8 compatible runtime.
  3. Extension is activated when you first access a Java file.
    • Initial activation can be longer since it requires extension to download additional parts.
    • Recognizes only projects with maven build files on the directory hierarchy.

Features

 screencast

  • Maven pom.xml project support
  • As you type reporting of parsing and compilation errors
  • Code completion
  • Javadoc hovers
  • Code outline
  • Code navigation
  • Code lens (references)
  • Highlights
  • Code formatting

Troubleshooting

  1. Due to size restrictions on the marketplace extension downloads additional required parts check that they are downloaded under ~/.vscode/extensions/redhat.java-0.0.2/server folder. You should see a folder named plugins.

  2. Check the status of the language tools on the lower right corner (marked with A on image below). It should show ready (thumbs up) as on the image below. You can click on the status and open the language tool logs for further information in case of a failure.

 status indicator

  1. Report any problems you face to the project.

Contributing

This is an open source project open to anyone. Contributions are extremely welcome

For information on getting started refer to java-language-server.

Feedback

License

EPL 1.0, See LICENSE for more information.