redhat-developer / redhat-developer/vscode-java
Feature request: "editor.autoClosingBrackets": "onlyIfLineToTheRightIsEmpty"
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
common annoyance using "editor.autoClosingBrackets": "beforeWhitespace"
Frequently ends up looking like:
if(true){} code.exisingCode();
suggest new option, "editor.autoClosingBrackets": "onlyIfLineToTheRightIsEmpty" (with a better name, obvs)
Environment
- Operating System:
- JDK version:
- Visual Studio Code version: 1.83.1
- Java extension version:
Steps To Reproduce
- start with code e.g.
this.clazz = clazz; - try to put it in an if statement with any whitespace, results in
if(true){} this.clazz = clazz;
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Expected Result
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 determining whether editor.autoClosingBrackets is implemented by the Java extension or by Visual Studio Code itself, then review the existing setting behavior described in the issue. Clarify the option name and scope before identifying the relevant implementation and tests; done means brackets close only when the line to the right is empty without breaking the existing beforeWhitespace behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100