Quantcast
Viewing all articles
Browse latest Browse all 5661

Automatically insert angle brackets when completing a generic type.

Please forgive me, if this question has already been aswered. It seems so trivial to me that I'm sure someone else already had the same idea.

 

In IntelliJ IDEA 12, is it possible to have the angle brackets (<>) be automatically inserted when a generic type is chosen from the auto-complete popup? Suppose I type "iter", and then open the completion popup, which contains the entry "Iterable<T> (java.lang)". I select that entry and "iter" is replaced by "Iterable". I often forget to insert the type paramters in declarations and only notice it a while later, which is annoying. If the completion popup would insert "Iterable<>" instead and put the cursor between the brackts, I would definitely not miss it.

 

Is that feature already there and can be enabled by configuration?

 

Thanks

Michael


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>