microsoft / microsoft/vscode-java-pack

Formatting support

Open
#1,176 5 comments 1 reaction 1 assignee View on GitHub

@CsCherrYY is already working on this.

Since Mar 20, 2023.

ai-triaged enhancement formatter
Dominant language
TypeScript
Stars
352
Forks
166
Avg merge
17h 47m
Merged PRs (30d)
32

Description

Typical Problems

  • Not easy to use or set up/Don't know how to configure or customize formatting option
  • The formatter settings don't take any effect/The formatter result is not as expected
  • Indentation problems: indentation should be overridden with formatter profile
  • Feature requests: support IntelliJ scheme, support google-java-format, support integrating checkstyle etc.

Work Items

P1
  • Introduce VS Code style formatter scheme
    • Introduce new VS Code configuration: java.format.settings
      • Deprecate existing java.format.settings.url and java.format.settings.profile
      • Accepts different formatter schemes (engines)
      • Keep compatibility with current custom profile path
      • Can configure some popular formatter rules
        • A subset of eclipse formatter settings, consist of The settings mentioned in existing Github issues
      • Relationship with VS Code indentation settings: Override?
    • Migrate "VS Code formatter settings preview" to vscode-java
      • The description of the configuration java.format.settings should contain a markdown command to the preview UI
  • Other features should respect correct formatter options (especially indentation & tab/space)
    • Code Action/refactoring/quickfix
    • Paste handler
P2
P3
  • New capabilities
    • Checkstyle support
    • Google-java-format support
  • Persistence: export VS Code formatter settings into other IDE’s scheme

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.