Archive for September, 2011

IntelliJ IDEA 11 EAP build 110.3

Friday, September 30th, 2011

We’re happy to announce the release of a new Early Access Preview build of IntelliJ IDEA 11. You can download the EAP build and check the complete release notes.

As usual, your feedback is welcome in the issue tracker.

Debugger: working with sub-ranges for arrays and lists

Friday, September 30th, 2011

During debugging IntelliJ IDEA shows only the first 100 elements of arrays and collections. It’s enough in most cases. However, it’s sometimes convenient to use a custom range. Exactly for this the ‘Adjust Range’ action has been available for arrays for quite a long time. But recently we’ve made a couple of improvements to it. Namely:

  • ‘Adjust Range’ works with lists now
  • adjusted range is preserved for local variables delivered to another stack frame

Quick demonstration example:

  1. Start debugger and wait until target break point is hit;
  2. Right click on target array/list and select the ‘Adjust Range…’ action:
  3. Define a range:
  4. Check the result:

New in 11: Create GitHub Gists from IDE

Thursday, September 29th, 2011

Helo guys,

We know that many of you are keen on GitHub and use gists in your everyday work. We are excited to tell you that now you can share your code instantly from the IDE. Here is a small demo of how it works.

Open any file you want to share with others or even a selection within this file, invoke the context menu and select Create Gist… menu item.

At first you’ll be asked to login to GitHub to be able to create personal gists. The IDE stores your GitHub password inside a built-in secure password storage, so you can be asked for your master password to access the storage.

Anyway if you don’t want to use it, you’ll see the GitHub login form:

Note that even without any account on GitHub you still can create gists for instant sharing of code samples with anyone.

And here we are, enter a description, select the desired gist options and press OK to create it!

This functionality will be available in the nearest IntelliJ IDEA 11 EAP and in all IntelliJ based products. It is still under development, so it is a subject to change and improve, so your feedback and thoughts are welcome. For example, we’re thinking about a preview editor to modify your code before publishing it.

Also we have a bunch of feature requests about GitHub integration in our issue tracker. Feel free to comment and vote for them. That’s all for now. Enjoy!

Develop with pleasure!
JetBrains Team

New in 11: Editing module dependencies on a diagram

Tuesday, September 27th, 2011

Ultimate Edition of IntelliJ IDEA provides an additional way of inspecting the project structure — the diagram of module dependencies. To open it just press Ctrl+Alt+Shift+U or invoke Diagrams | Show Diagram from the context menu on a module node in Project View or Navigation Bar.

IntelliJ IDEA 11 adds the ability to edit module dependencies using the diagram: press Delete on an edge to remove dependency or press Alt+Insert to add a new one.

Your feedback is very welcome, as usual.

IntelliJ IDEA 11 Early Access is Open to Public

Tuesday, September 20th, 2011

If you are our regular reader you already know that IntelliJ IDEA 11 is being actively developed. We could not help ourselves and some new features have been already announced. You could’ve spotted the new codename too. It’s Nika! Please welcome!

So, IntelliJ IDEA 11 public EAP program is officially open!
Download the EAP build for your platform.

Following the tradition we’ve improved virtually every part of the IDE: the interface, the code editor, many of the supported technologies and frameworks got some love, and of course IDE performance. You are welcome to read the top-level list of changes available in this EAP build.

The development team will be detailing certain features here in the blog in the following weeks tagging them with ‘Nika’ tag, so stay tuned for more interesting stuff soon.

And of course we rely on your feedback a lot. Please submit your ideas and impressions on our EAP discussion forum and file requests to the issue tracker.

Develop with pleasure!
The JetBrains Team

XSLT 2.0 in IntelliJ IDEA 10.5

Monday, September 19th, 2011

Did you know IntelliJ IDEA 10.5 supports XSLT 2.0? But it does!
Major new features are:

  • Support for XPath 2.0 syntax (e.g. if-then-else constructs, for-expressions and a lot more), completion for built-in XPath and XSLT functions
  • Complete support for XPath 2.0 built-in type system. Limited support for user-defined types
  • Complete support for XPath 2.0 and XSLT 2.0 built-in functions
  • Support for new XSLT 2.0 elements, such as custom extension functions (xsl:function)
  • New refactoring: Extract Function, turns an XPath expression into a call to a user-defined function

Some example screenshots:

Custom functions & parameter type validation

Completion for new XPath & XSLT functions

Completion for new XPath & XSLT functions

Running XSLT 2 stylesheets is of course possible as well. However this currently requires the presence of an XSLT 2.0 capable processor in the classpath, such as Saxon 9HE.

If the lacking tool-support stopped any users from using XSLT 2.0 yet, IntelliJ IDEA now enables the developer to use the far more powerful functions, type system and data model.

Develop XSLT with pleasure!

Refactoring in IntelliJ IDEA, Live by Robert C. Martin (Uncle Bob)

Monday, September 12th, 2011

It’s still over 3 months before the holiday season, but we just got a great present from our long time friend Robert C. Martin (Uncle Bob) — a live refactoring demo performed by the legendary software expert himself. He’s, of course, using IntelliJ IDEA!

Check out this video where Uncle Bob shows some refactoring techniques transforming a “large and ugly” function into a clean and readable piece of Java code, using such refactorings as Rename, Extract Method, Inline Variable, and others. We learn something new every time we watch experts like Uncle Bob.


You can also watch this video on JetBrains TV.

The video is part of the highly recommended “Clean Code” series of educational “code-casts.” More Clean Code videos are available at cleancoders.com.
Robert C. Martin (Uncle Bob) is the Master Craftsman at 8th Light Inc., 8thlight.com.

As a separate note, Robert C. Martin has recently released a new book “The Clean Coder: A Code of Conduct for Professional Programmers” which we think is a must read for every professional software developer.

Enjoy the demo and develop with pleasure!
-The JetBrains Team

New in 11: Changes digest for easier pre-commit review

Friday, September 9th, 2011

As for me, after a few years of working in a huge project inside a big team, I became concerned about accidentally breaking the project.

That’s why every time I commit something, I double-check my changes.

In the forthcoming IntelliJ IDEA 11 EAP, I have a special “digest” changes presentation for that!

It helps me in my last pre-commit check immediately inside the commit dialog:

And I also use it all the time when coding, to recall my changes:

NB: to see the digest of changes in Changes | Local, use the new “Change Details” toolbar button.

To tell the truth, even when I was in the middle of this “digest” changes feature, I simply couldn’t live without it, so I compiled a build of IntelliJ IDEA for myself and used digest view while developing the digest view!

IntelliJ IDEA 11 EAP is to be announced any day now. Stay tuned!

Keen to try Gradle integration in IntelliJ IDEA?

Thursday, September 8th, 2011

You asked us to add Gradle support to IntelliJ IDEA. And when you ask hard we usually respond. So, we’ve been working hard on that lately. The job is still in progress but the most impatient ones can already try what is done.

The most valuable thing IntelliJ IDEA does now is setting up the project (modules, libraries, etc.) on the basis of a Gradle project file. The process is rather simple:

1. Choose the target Gradle project:

2. Check and, if necessary, adjust its settings prior to import:

3. Voila, the project is ready to use:

The plugin will be available when IntelliJ IDEA 11 EAP opens but if you really can’t wait, check this wiki page for instructions on how to build IntelliJ IDEA and Gradle plugin from the sources. It also shows current development status.

Your feedback is much appreciated on the discussion forum or in IntelliJ IDEA issue tracker.

I'm off to a vacation for 2 weeks and hope to get your feedback when I return refreshed to take care about it :) 

IntelliJ IDEA 10.5.2 bugfix update available

Thursday, September 1st, 2011

We’ve just rolled out a new update to the latest version of IntelliJ IDEA — 10.5.2.

Check out the change log for the list of fixes since the last update and download the new version from the JetBrains Web site.

And if you’re looking forward to new features and not just bugfixes — the EAP for IntelliJ IDEA 11 is just around the corner.

Stay up-to-date and stay tuned!

Develop with pleasure!
The IntelliJ IDEA Team