microsoft / microsoft/vscode-java-pack

Formatting support

Offen
#1,176 5 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

@CsCherrYY arbeitet bereits daran.

Seit 20.3.2023.

ai-triaged enhancement formatter
Vorherrschende Sprache
TypeScript
Sterne
352
Forks
166
Ø Merge
17 Std. 47 Min.
Gemergte PRs (30 T.)
32

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.