redhat-developer / redhat-developer/vscode-java
Code formatting not correct
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
[provide a description of the issue]
Environment
- Operating System: build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04
- JDK version: openjdk 11.0.9.1 2020-11-04
- Visual Studio Code version: 1.51.1
- Java extension version: v0.72.0
Steps To Reproduce
I import eclipse code formatting file.
Sample: <Type> builder()
It always delete white space after the closed angle bracket >, but the setting in xml file is insert a white space.
insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"
Other formatted code look good. But i'm nervous there are more setting not run in right way.
Please fix this.
Current Result
<Type>builder()
Expected Result
<Type> builder()
Additional Informations
Contributor guide
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.
Research direction
Start by reproducing the formatting issue in VS Code with the provided Java and Eclipse formatter settings, using the sample <Type> builder() case. Trace how insert_space_after_closing_angle_bracket_in_type_arguments is imported and applied. Done means the setting preserves the expected space and other formatter behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100