Make sure to download JDK14 and export JAVA_HOME
as well as PATH
variables to VSCode:
$ 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.
$ 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
Plus your VSCode now support all the latest and greatest JDK14 coding structure:
var running = application.isRunning(); Assertions.assertTrue(running);
Can your VSCode do that? If not, install the Apache NetBeans VSCode extension!