Over a million developers have joined DZone.

Tip: Add Closing Parenthesis to Java Statement from Keyboard

· Java Zone

Learn more about Kotlin, a new programming language designed to solve problems that software developers face every day brought to you in partnership with JetBrains.

I got a great tip from Tomás Lázaro in the comments of Complete List of Macro Keywords article. This:

 

Now when I am typing in the middle of a statement and the error mark shows I need another parenthesis (sometimes you need 3 or 4 closing parenthesis and it is impossible almost to know), I now only need to press Alt-0 and I have one more closing parenthesis.

 

The Java Zone is brought to you in partnership with JetBrains.  Discover how powerful static code analysis and ergonomic design make development not only productive but also an enjoyable experience.

Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}