Make sure to download JDK14 and export JAVA_HOME
as well as PATH
variables to VSCode:
Code Block | ||
---|---|---|
| ||
$ export JAVA_HOME=/jdk-14
$ export PATH=$JAVA_HOME/bin:$PATH
$ code |
Download the NetBeans extension and install it into VSCode via Install from VSIX...
Make sure to get some Maven project - for example Micronaut: https://micronaut.io/launch/
Don't forget to select Maven and Java. Generate the project, download it, extract it into local disk.
Code Block | ||
---|---|---|
| ||
$ mkdir microdemo
$ cd microdemo/
microdemo$ unzip ~/Downloads/microdemo.zip
microdemo$ JAVA_HOME=/jdk-14 mvn install |
Open the microdemo
folder in VSCode
wait for message "Indexing completed" and then you can enjoy editing, code completion and other NetBeans goodies
TODO: this page should document the extension fo Java editing for Visual Studio Code provided by Apache NetBeans.