Palantir Java FormatterFormats Java source files using Palantir Java Format. Runs a long lived JVM daemon in the background for fast formatting. RequirementsJava 17 or later on the PATH or specified via the SetupAdd this to your VS Code settings JSON to use as the default Java formatter with format on save:
Configuration
Commands
How it worksThe extension spawns a JVM daemon process that communicates via JSON over stdin/stdout. The daemon stays running between format requests so you only pay the JVM startup cost once. If the daemon crashes it automatically restarts up to 3 times. The status bar shows the current daemon state. Click it to restart. Building from sourceBuild the Java daemon:
Build the extension:
Package as VSIX:
Development
Open this repo in VS Code and press F5 to launch an Extension Development Host for testing. |