microsoft / microsoft/vscode-java-pack
Formatting support
Offen
@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.urlandjava.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?
- Deprecate existing
- Migrate "VS Code formatter settings preview" to vscode-java
- The description of the configuration
java.format.settingsshould contain a markdown command to the preview UI
- The description of the configuration
- Introduce new VS Code configuration:
- Other features should respect correct formatter options (especially indentation & tab/space)
- Code Action/refactoring/quickfix
- Paste handler
P2
- New capabilities
- Transformed from IntelliJ formatter settings https://github.com/redhat-developer/vscode-java/issues/998
- Cooperate/integration with "Clean-up"
- Some features in formatter from IntelliJ side can be found in "Clean-up" from eclipse side, e.g., add braces in if statement: https://github.com/redhat-developer/vscode-java/issues/2846
- Quick fixes for detected formatting problems
- AST sync issue
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
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.