Author Archives: Anna Kozlova

Do you know where ‘Go To…’ can get you?

How often do you use ‘Go To Class/File/Symbol’ feature in IntelliJ IDEA? Pretty often I would guess. But do you know everything you can do with it? Let me go through a couple of often overlooked gems. Do you know … Continue reading

Posted in Tips & Tricks | Tagged , | 9 Comments

IntelliJ IDEA does not show some files? Know the hiding-places

Have you ever found yourself in a situation when there is a file that exists on the disc but IntelliJ IDEA doesn’t show it anywhere? You press synchronize but nothing happens? OK, may be the next few tips will be … Continue reading

Posted in Tips & Tricks | Tagged | 18 Comments

Fork your tests with IntelliJ IDEA 10.5 EAP build 106.447

One of the latest features was long awaited fork mode for JUnit run configurations. Since now it is possible to run your tests in separate VMs. It is possible to choose to fork on class level only. Check out the … Continue reading

Posted in EAP Releases | Tagged | 7 Comments

Java 7. @SafeVarargs

Java 7 provides a way to remove a compiler warning about generics vararg invocation. With Java 7 you can annotate your vararg method with SafeVararg annotation and your clients won’t get these nasty warnings any more. IntelliJ IDEA 10.5 will … Continue reading

Posted in New Features | Tagged , | Leave a comment

More flexible and configurable @Nullable/@NotNull annotations

For quite a while IntelliJ IDEA can detect probable NPE’s in your code. But you have to annotate it with JetBrains’ @Nullable/@NotNull. In order to leave your code free from JetBrains’ annotations you could use external annotations, but they were not so … Continue reading

Posted in New Features | Tagged | 11 Comments

Smarter and Faster Introduce Parameter in Java

As a logical next step after inplace introduce variable refactoring we did in IntelliJ IDEA 10, version 10.5 will offer inplace introduce parameter. Here is a brief overview of what we’re working on. Once called, it will gently ask you to … Continue reading

Posted in New Features | Tagged , , | 19 Comments

Auto-infer @Nullable/@NotNull Annotations

For a long time already IntelliJ IDEA can detect probable NPE’s in your code. You need to annotate your methods/fields/variables with @Nullable/@NotNull annotations and IntelliJ IDEA will highlight possible contract violations. Good. But the annotations only begin to work when … Continue reading

Posted in New Features | Tagged , | 14 Comments

Smarter and Faster Introduce Variable in Java

Introduce variable is one of those refactorings used many times a day. So, how can we make it work faster? Get rid of modal dialogs! So, in order to introduce a variable from an expression press Ctrl+Alt+V. Remember modal dialog? … Continue reading

Posted in New Features | Tagged , | 22 Comments

ThreadLocal in One Click

Most of applications initially are single threaded, and IntelliJ IDEA was no different; though luckily, now it isn’t — but we had to adapt our code to use multiple threads. In this post I’m going to tell you how. In … Continue reading

Posted in New Features | Tagged , | 4 Comments

Create a Class Really Quickly

To quickly create a new class I press Alt+Home and then Alt+Ins. And you?

Posted in Tips & Tricks | Tagged , | 7 Comments