Bug 565825 - Do not insert closing brackets if already present when typing opening brackets
Summary: Do not insert closing brackets if already present when typing opening brackets
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.16   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2020-08-05 05:21 EDT by Gao Hao CLA
Modified: 2024-02-23 05:15 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gao Hao CLA 2020-08-05 05:21:30 EDT
Steps to reproduce:

①. enable Automatically close (parentheses),[square] and <angle> brackets in preferences page

②. copy or type below code:


new HashMap<>()

 
③. delete the opening parenthesis )


④. type opening parenthesis (

Expected:

new HashMap<>()

Actual:

new HashMap<>())

Very annoying, I want to keep the ① behaviour and not insert closing brackets if there exists the corresponding closing bracket.
Comment 1 Gao Hao CLA 2020-08-05 05:23:54 EDT
(In reply to Gao Hao from comment #0)

> ③. delete the opening parenthesis )

Sorry, it is

③. delete the opening parenthesis (
Comment 2 Eclipse Genie CLA 2024-02-23 05:15:05 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.