Ready-to-use integration examples built with the Camel framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.5 KiB

Use Visual Studio Code as IDE

First, install VS Code.

Then, install the required extensions to develop Java:

Install required extensions to edit XML files:

  • Install XML Tools to enable XPath / XQuery support.
  • Install XML Tools to enable tag auto-closing.

Finally, Install XML Language Support to enable XSD auto-complete / validation.

This last extension needs a bit of setup to work. Namely, the JAVA_HOME environment variable needs to be set properly.

On MacOS this environment variable is not set. You will need to print the Java Home of your current Java installation with:

$ /usr/libexec/java_home -v 1.8
/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home

Open $HOME/.vscode/settings.json and add the path to you Java Home in front of the key xmlLang.javaHome:

{
  "xmlLang.javaHome": "/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home"
}
```

Restart Visual Studio Code.

## References

- [Java Support in VS Code](https://code.visualstudio.com/docs/languages/java)