Archive for November, 2011

New in IntelliJ IDEA 11: Improved filtering in Android logcat

Wednesday, November 30th, 2011

In IntelliJ IDEA 11 we’ve improved Android logcat view, so now watching the logs of your applications became much more convenient.

First, you can create your own named filters and switch between them:

You can use regular expressions to filter the log, e.g. by a tag or message text. Note that autocompletion of tags already presented in the log is available: 

Another noteworthy improvement is that multiline messages aren’t cut anymore when you filter them by a named filter or using search. For example, if you search for “ActivityThread.java”, you’ll see full stacktrace containing the query, but not just separate lines: 

IntelliJ IDEA 11 Beta 2 (build 111.24) Available

Tuesday, November 29th, 2011

If you are using IntelliJ IDEA 11 Beta, here is a recommended update for you — Beta 2.

Download IntelliJ IDEA 11 Beta 2, check out the release notes for this build and submit your feedback to the issue tracker.

Call to action for all plugin developers: it is the best time now to ensure the compatibility with the forthcoming IntelliJ IDEA 11.

If you had missed it — our “free upgrade” offer is still working — buy IntelliJ IDEA 10 now and get v.11 free.

As a side note: we’ve just annouced PhpStorm 3.0 release, the first one in the line of IntelliJ-based IDE releases. IntelliJ IDEA 11, PyCharm 2 and RubyMine 4 will follow.

Develop with pleasure!
IntelliJ IDEA Team

NavBar improvements in IntelliJ IDEA 11

Tuesday, November 29th, 2011

We’ve slightly redesigned Navigation Bar and added some new sweet features. Watch this short demo for the details and a general overview of NavBar abilities.

New in 11: Play! in IntelliJ

Monday, November 28th, 2011

IntelliJ IDEA 11 adds support for one of the most voted issues: Play! framework.

Please, have a look at how you could play in IntelliJ IDEA:

What else? Watch other short screencasts of specific features:

Enjoy Spring Data JPA in IntelliJ IDEA 11

Thursday, November 24th, 2011

Spring JPA is a part of the Spring Data project that makes it easy to quickly implement JPA-based repositories.

IntelliJ IDEA 11 recognizes repositories,
provides quick navigation through the code,

adds advanced completion, error highlighting and quick fixes.

Download IntelliJ IDEA 11 Beta and try it.

Devoxx follow-up: your IDE can do more!

Wednesday, November 23rd, 2011

We’ve received lots of positive feedback at Devoxx 11 last week and met many happy users of IntelliJ IDEA. But to my surprise, many of them don’t know some little productivity features that have been there for quite a while. So, I want to just highlight a couple of them in this post.

Restore layout

You may sometimes find your IDE bloated with numerous tool-windows… but there is a simple way to get rid of them and rollback to pure editor. That is achieved by the following:
1. Configure tool windows in preferred way (e.g. all tool windows are closed);
2. Remember the layout - ‘Main menu | Window | Store Current Layout as Default’;
3. Call ‘Restore Default Layout’ action (mapped to ‘Shift+F12′ by default) when it’s necessary to rollback the UI;

Soft wraps

In essence, this is the ability to show all text even when it is wider than your editor’s viewport. Use-cases: laptops, diff views, split editor, console output etc:

IntelliJ IDEA support soft wraps starting from version 10 but the feature is significantly improved in the upcoming v.11.

Configuring soft wraps:

Soft wraps effect in Diffs view:

JetBrains Contributes to Open Source at Devoxx

Tuesday, November 22nd, 2011

[This post is by Hamlet D'Arcy, JetBrains Academy Member. —Eugene Toporov]

Another Devoxx conference has come and gone, and at this Devoxx, JetBrains was more active than ever. As usual we had our vendor booth, but more importantly we participated directly by giving several conference sessions and helping organize the Hackergarten open-source coding event.

The feedback on our sessions was overall positive. Vaclav Pech and Maxim Mazin gave a session on MPS, and Andrey Breslav presented Kotlin. The video of the talks will be available on the Parleys website soon.

One of the funnest parts of Devoxx was the Hackergarten on Monday afternoon. Hackergarten is an open source coding event where conference attendees are guided through making opens source contributions with the help from the project leads themselves. The Hackergarten was organized and lead by JetBrains Academy Member Hamlet D’Arcy, and we sent our Groovy Project Lead Peter Gromov to help. The code we wrote at the event is already available in IntelliJ IDEA 11, so you can already download and use the features in IntelliJ IDEA 11 Beta.

Niels Harremoës and Peter worked on a Groovy intention that inverts an if statement. So if you start with this Groovy code:

if (a) {
  true
} else {
  false
}


You can press Alt+Enter to bring up the “Invert If” intention and transform
the code into:

if (!a) {
  false
} else {
  true
}


This intention has existed on the Java side for a few years, and now the Groovy users can benefit from the same feature.

The other commit made was from Hamlet D’Arcy and Brice Dutheil. They created a Groovy intention that splits one if statement into two. So when you start with a complex if statement like this:

if (a && b) {
  c()
}


Then pressing Alt+Enter brings up the “Split If” intention, which transforms the code into nested if statements:

if (a) {
  if (b) {
    c()
  }
}

The next step is, of course, to provide the opposite transformation which merges two if statements together. Perhaps we can get it done at the next Hackergarten?

Besides these commits, we also worked on improving the ongoing Griffon framework support with Griffon Lead Andres Almiray. IntelliJ IDEA is learning more about source directory conventions and improving the dedicated Griffon view panels. We also had some productive conversations with the JBoss Forge teams about how best to support their project in IntelliJ IDEA.

Besides all the IntelliJ IDEA contributions, there were other teams working hard on their own projects. Peter Ledbrook from VMWare and Søren Glasius updated several Grails plugins, including the CodeNarc one. Java Champion Steve Chin lead a team into several commits on the ScalaFX project, which is a Scala DSL for writing JavaFX code. A whole bunch of JBoss guys came out to work on their projects. And Gradle Lead Hans Dockter was on site to help people through Gradle issues.

Hackergarten was a lot of fun and we look forward to doing it again. It makes for a different type of conference experience, one in which you learn by doing more than by listening to someone else give a presentation. The activities of coding and traditional sessions was a good mix, and the afternoon spent coding gave us a lot of energy for the rest of the conference.

Are you interesting in coming to a Hackergarten? Hamlet organizes one every other month in Basel Switzerland at his company Canoo. There are other sister groups in Prague and Mexico City as well. If you want to have one in your town then contact Hamlet directly. Who knows, maybe your code will be in the next version of IntelliJ IDEA?

IntelliJ IDEA 11 Beta (build 110.492) is available!

Tuesday, November 22nd, 2011

We’re getting closer and the finish line is just ahead. Please welcome the Beta build.

The IntelliJ IDEA 11 Beta has new streamlined UI for tabs, tool-windows and navbar. We’ve added an experimental plugin for Subversion 1.7 support for early adopters and JDK 1.6_29 is bundled inside Windows distribution.

Download IntelliJ IDEA 11 Beta, check out the release notes for this build and submit your feedback to the issue tracker. There’s still time to make IntelliJ IDEA 11 better.

If you are developing plugins for IntelliJ IDEA, it is the best time now to ensure the compatibility with the forthcoming version 11.

Develop with pleasure!
IntelliJ IDEA Team

New in 11: Git log gets more power

Monday, November 14th, 2011

The most exciting news for me is that now in forthcoming IntelliJ IDEA 11, we show Git revisions graph!

Now that IntelliJ IDEA can visualize commits links, we’ve added context actions to tag a commit, create (and checkout) new branch, and checkout a selected revision.

I want to specifically mention the highlight actions — now you can see what commits are in “ancestors subgraph” for a selected commit. By default, IntelliJ IDEA shows HEAD subgraph, i.e. you see what commits you have in your working tree now.

It is really convenient when you are checking what commits went into some tag (or branch).

To find any commit in git log (in already shown part), use the new “Goto Commit” action — type commit hash, or description fragment, or branch or tag name, and be navigated to it.

And, finally — when browsing history, sometimes you work with a set of commits and need to track this set.

Now you can mark commits by simply pressing Space and they get stared.

New EAP build of IntelliJ IDEA 11 is available on 11.11.11!

Friday, November 11th, 2011

New EAP build 110.365 of IntelliJ IDEA 11 is available for download, check out the complete release notes. Since we are approaching the release we are eagerly looking for your feedback in the issue tracker.

- Develop with pleasure!
IntelliJ IDEA Team