Formatting support
@CsCherrYY is already working on this.
Since Mar 20, 2023.
Assessment
This issue has not been assessed yet.
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.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
- Dominant language
- TypeScript
- Stars
- 352
- Forks
- 166
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 32
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-java-pack
-
Memory Leak in Linux Openai-triaged bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
microsoft/vscode-java-pack#1543 · 8 comments · 4 reactions ·
-
ai-triaged bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/vscode-java-pack#1443 · 1 comment · 2 reactions ·
-
ai-triaged bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
microsoft/vscode-java-pack#1425 · 1 comment ·
-
ai-triaged enhancement feature-request
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/vscode-java-pack#1423 · 2 comments · 1 reaction ·
-
ai-triaged area/jdtls bug needs-investigation
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoft/vscode-java-pack#1420 · 1 comment ·
All issues in microsoft/vscode-java-pack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·