redhat-developer / redhat-developer/vscode-java

Code formatting not correct

Open
#1,730 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

formatter
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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.