Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>palantir-java-format-vscodeNew to Visual Studio Code? Get it now.
palantir-java-format-vscode

palantir-java-format-vscode

dennismok2018

|
9 installs
| (0) | Free
Wrapper of `palantir-java-format` for vscode java formatting
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

palantir-java-format-vscode README

Requirements

  • palantir-java-format executable

Commands Supported

  • editor.action.formatDocument
  • editor.action.formatSelection

Commands Added

  • palantir-java-format-vscode.openExtensionSettings: Open palantir-java-format-vscode Exstension Settings.
  • palantir-java-format-vscode.formatImports: Format import statements.
  • palantir-java-format-vscode.documentFormatExcludingImports: Format document excluding import statements.

Extension Settings

This extension contributes the following settings:

  • palantir-java-format-vscode.pathForExecutable: Excutable path for the palantir-java-format executable.

    • DEFAULT: palantir-java-format
  • palantir-java-format-vscode.style: Formatting style to use. Options are Google Style, AOSP (--aosp) OR Palantir (--palantir). Cannot use both aosp and palantir style.

    • DEFAULT: Palantir
    • Applying commands:
      • all
  • palantir-java-format-vscode.skipSortingImports: If true, skips fixing the import order but still removes unused imports. Equivalent to --skip-sorting-imports.

    • DEFAULT: false
    • Applying commands:
      • editor.action.formatDocument
      • palantir-java-format-vscode.formatImports
  • palantir-java-format-vscode.skipRemovingUnusedImports: If true, skips removing unused imports but still sorts imports. Equivalent to --skip-removing-unused-imports.

    • DEFAULT: false
    • Applying commands:
      • editor.action.formatDocument
      • palantir-java-format-vscode.formatImports
  • palantir-java-format-vscode.skipReflowingLongStrings: If true, does not reflow string literals that exceed the column limit. Equivalent to --skip-reflowing-long-strings.

    • DEFAULT: false
    • Applying commands:
      • editor.action.formatDocument
      • palantir-java-format-vscode.documentFormatExcludingImports
  • palantir-java-format-vscode.enableDocumentFormatExcludingImports: (extension added mode) When enabled, causes editor.action.formatDocument to behave like palantir-java-format-vscode.documentFormatExcludingImports.

    • DEFAULT: false
    • Applying commands:
      • editor.action.formatDocument
  • palantir-java-format-vscode.enableDebugMode: When enabled, use vscode popup window to show the executing formatting command

    • DEFAULT: false

Release Notes

see CHANGELOG.md

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft