Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Tip: Add Closing Parenthesis to Java Statement from Keyboard

DZone's Guide to

Tip: Add Closing Parenthesis to Java Statement from Keyboard

· Java Zone
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

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.

 

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}