This is a technology preview of Apache NetBeans based extension for VS Code. Use it to get all the goodies of NetBeans via the VS Code user interface! Run on JDK8*, JDK11, JDK15, etc.
Invoke “Open Folder” action to open project directories with pom.xml
or build.gradle
build scripts. Edit, compile and debug (with the Java 8+ debugger configuration) the .java
application and test files in such projects. Debug not only Java code, but JavaScript, Python, Ruby polyglot programs at once.
Follow the online instructions to set your environment up to support typical development use-cases.
Class level refactorings as well as variable refactorings are supported in VSCode via Apache NetBeans extension. See following screenshots:
Some refactorings are two steps with like Override method ... where method to be overriden is selected in 2nd step:
The user projects are built, run and debugged using the same JDK which runs the Apache NetBeans Language Server. The JDK is being searched in following locations:
netbeans.jdkhome
setting (workspace then user settings)java.home
setting (workspace then user settings)JDK_HOME
environment variableJAVA_HOME
environment variableAs soon as one of the settings is changed, the Language Server is restarted.
Apache NetBeans Language Server extension isn't the only Java supporting extension. To avoid duplicated code completion and other misleading clashes the extension disables certain functionality known to cause problems. This behavior can be disabled by setting netbeans.conflict.check
setting to false
.
Read building instructions to help Apache community to improve the extension.