Skip to content

Cannot disable auto formatting #2897

@zlargon

Description

@zlargon

I want to turn off auto formatting when saving a file, as it takes too long (5 seconds). I've tried using the configuration java.format.enabled, but it's not working.

Environment
  • Operating System: macOS 13.1
  • JDK version: 11
  • Visual Studio Code version: 1.74.3
  • Java extension version: v1.14.0
Steps To Reproduce
  1. Add java.format.enabled: false in settings.json
  2. Edit java and save file
Current Result

The java file is formatted with java.format.enabled: false after file saved.

Expected Result

The java file should not be formatted with java.format.enabled: false after file saved.

Additional Informations

video screen recording:

java_plugin_format.mov

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions