Skip to content

[Formatting Preview] After format setting changes, the code actions like quick fix does not pick the new setting #641

Closed as not planned

Description

@jdneo
  1. Update setting Before import declarations. to a new number like 5
  2. Trigger the import class quick fix to add a new import statement
  3. The inserted statements are not using the settings in the format preview

// This might be an upstream issue.

Activity

  1. github-actions commented on Oct 31, 2025

    @github-actions

    Hi Sheng Chen (@jdneo), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    Solution

    • After changing the Before import declarations. setting in Java Formatter Settings, reload the window (Developer: Reload Window) or restart VS Code. The formatter profile is only reloaded at startup, so code actions (e.g. Quick Fix) won’t pick up changes in real time.
    • Track or upvote the upstream issue where dynamic formatter-profile updates aren’t applied until restart:

    Duplicate Issue

    Other references with low confidence

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions