Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.5.1Release
-
Fix Version/s: 2.5.2.Release
-
Component/s: Editor, Project Settings
-
Labels:None
-
Environment:STS 2.7.1, Grails 1.3.7
-
Number of attachments :
Description
On typing "${" in a GString, the editor will immediately add a closing brace "}" character after the cursor, even if the Java Editor preferences specify not to automatically close braces. I expect these editor preferences to be inherited by the Groovy Editor. These unwanted closing braces interfere with my ability to type fluidly, are a constant source of annoyance, and cause a lot of accidental errors while coding.
This issue might relate to behaviour introduced by the patch for issue GRECLIPSE-795. A comment there states:
This patch adds auto insertion of "}" braces after "${" while editing Strings.
A little of extra logic was also added to not insert the extra closing brace if it seems there's one already there.
Please fix this issue and respect the Java Editor preference not to automatically close braces.
Assigning this one to Kris since he was the one who originally created the patch.