Author Archives: Peter Gromov

Automatic @NotNull/@Nullable/@Contract inference in IntelliJ IDEA 14

Java annotations are awesome and helpful, but you need to add them by hand. Well, not anymore, because IntelliJ IDEA will do that for you in some quite important cases. Jars in your dependencies are stuffed with methods and sometimes … Continue reading

Posted in New Features | Tagged , , , | 20 Comments

Complete static methods and fields with the new IntelliJ IDEA 12 EAP build 122.29

Did you know how to quickly complete a static method call or a constant reference without writing the class name first? Just type some prefix and invoke Basic Code Completion (Ctrl+Space) twice (or Ctrl+Alt+Space once): There are two problems though: The … Continue reading

Posted in EAP Releases | Tagged , | 10 Comments

Better Code Completion in IntelliJ IDEA 12 Leda

As you know code completion in IntelliJ IDEA constantly evolves. Here’s a few new features coming in IntelliJ IDEA 12: Middle matching Class Name Completion in Basic Completion Completion statistics in Productivity Guide Other minor improvements

Posted in New Features | Tagged , | 16 Comments

Groovy support improvements in IntelliJ IDEA 11.1

Here I would like to tell you about some of the Groovy language support improvements available in IntelliJ IDEA 11.1. Unused Symbol Highlighting If a class, method or property is unused even if it is in fact public, you may … Continue reading

Posted in Tips & Tricks | Tagged , , | 1 Comment

Want more from IntelliJ IDEA? Press the same shortcut again!

Sometimes you invoke an action and you don’t get what you wanted immediately. In such cases it may help to invoke the action again by pressing the same shortcut. In basic code completion (Ctrl+Space) this will list non-imported classes: It … Continue reading

Posted in New Features | Tagged , , , | 3 Comments

Chained expression completion in IntelliJ IDEA 11.1

If you use completion autopopup in IntelliJ IDEA 11, you may have seen “n variants…” suggestions: This means there are two StringUtil classes available, neither of them is imported, and IDE can’t choose which of them to put to the first … Continue reading

Posted in New Features | Tagged , , | 10 Comments

Shiftless code completion and navigation in IntelliJ IDEA 10.5

With IntelliJ IDEA 10.5, you may press up to twice as less keys every day as you do now. Seriously! Here’s how. The reason IDEs exist in the first place is that they make your life easier. In particular, they … Continue reading

Posted in New Features | Tagged , | 7 Comments

Custom file types in IntelliJ IDEA

IntelliJ IDEA is a great IDE for Java, Groovy, Flex, Python, Ruby and many other languages. The text editor with camel-hump completion, and version control support are so great that it may be hard to switch to another editor which … Continue reading

Posted in Tips & Tricks | Tagged , , | 19 Comments

Groovy/Groovy++ object creation

Groovy‘s as keyword allows for some interesting features. In particular, it provides a convenient syntactic sugar for object creation: Point point = [4, 2] as Point KeyAdapter listener = [         keyTyped: { e -> … },         keyReleased: { e -> … Continue reading

Posted in New Features | Tagged , | 3 Comments

Console folding customization

Once I wrote about console folding for Groovy stacktraces. Naturally, many people wished similar things could work for other languages and frameworks. Long story short, there’s now a settings page dedicated to the console folding. It provides a settings page where you … Continue reading

Posted in New Features | Tagged , | 9 Comments