redhat-developer / redhat-developer/vscode-java

Feature request: "editor.autoClosingBrackets": "onlyIfLineToTheRightIsEmpty"

Open
#3,354 0 comments 0 reactions 0 assignees View on GitHub

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
  1. start with code e.g. this.clazz = clazz;
  2. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.