Author Archive

New Spring Beans Quick-fixes in IntelliJ IDEA 12.1

Tuesday, February 19th, 2013

Since IntelliJ IDEA 12.1 is already available for the early preview, we can tell you now about the new features.

If you ever referenced existing beans across multiple Spring configurations, you will find the new quick-fixes very useful. Now you can change dependencies between corresponding contexts in Spring facet without leaving the editor.

Let’s say we have two Spring XML configuration files: spring-config.xml and another-spring-config.xml, where each of them is configured in its own application context in Spring facet.

Let’s reference existing bean “sampleBean” across the existing, and yet unrelated application contexts.
(more…)

Smart Path Variables for Spring MVC in IntelliJ IDEA 12

Monday, February 18th, 2013

The latest release of IntelliJ IDEA brings many exciting features for Spring MVC support. In this post we would like to highlight some of them, which add even more intelligence for @RequestMapping and @PathVariable usages in your project.

Enhanced code completion in @RequestMapping:

(more…)

Support for Spring Batch in IntelliJ IDEA 12

Monday, October 8th, 2012

Great news for developers who use Spring in their projects.

Upcoming IntelliJ IDEA 12 will add long time requested support for Spring Batch.

You can easily add support for Spring Batch using the integrated frameworks and libraries wizard.

Code assistance features include smart completion and highlighting in XML files and rename refactoring.

Predefined Spring EL variables are automatically resolved as well as special bean scope step.

You can try these new features now for free via IntelliJ IDEA 12 EAP.

Please give it a try and let us know how it works for you.

Develop with Pleasure!

Spring Integration in IntelliJ IDEA 12 Leda

Monday, September 24th, 2012

Support for Enterprise Integration Patterns via Spring Integration is getting better in the upcoming release of IntelliJ IDEA 12 Leda.

Here’s some of the most important new features.
(more…)

Spring Web Flow Support in IntelliJ IDEA 12

Wednesday, July 4th, 2012

One of the features added in the last IntelliJ IDEA 12 EAP is Spring Web Flow support. This post is a quick overview of the enhancements.

Watch Spring Web Flow Support in Action


(more…)

Spring Security Support in IntelliJ IDEA 12 Leda

Monday, July 2nd, 2012

Support for widely used Spring Security has been enhanced in upcoming release of IntelliJ IDEA 12 Leda. I would like to highlight some of these changes here. (more…)

Intelligent Copy&Paste

Friday, October 2nd, 2009

Do you find yourself copying and pasting parts of bodies between different methods and then facing broken code?

Unfortunately, parameter names tend to differ — like in this (very simplified) example:

Nothing is easier than fixing this problem with a few keystrokes in IntelliJ IDEA!

First, move caret on any red reference (highlighted with red color), or simply press F2, and then invoke available Quick-Fixes via Alt+Enter:

Now select Rename Reference (again, you can use arrow keys or just start typing Ren.. + Enter) and… IntelliJ IDEA fixes code for you!

See, sometimes it’s just the small features making it possible to achieve maximum productivity.

Using Scope-Based Code Highlighting

Sunday, May 10th, 2009

One of not so well-known features of IntelliJ IDEA is an ability to differently highlight certain scopes in code editor.

To use it, open the Settings dialog, under IDE Settings expand Editor, then expand Colors & Fonts, and select Scope Based preferences. You will see a list of predefined scopes, and the Edit Scopes button that lets you easily create your own.

Each scope is assigned a distinct color/font scheme — just like different language elements in Java, which makes it easy to distinguish from other code in the editor.

In the following example, it is used to quickly differentiate between real testing code and JUnit Classes (pattern: lib:org.junit..*):



Other use cases include highlighting of, for example, third-party framework code, distinguishing normal code from assertions, etc.

IDEA 8.1.1: Improved Struts 2 support

Monday, April 20th, 2009

The upcoming IntelliJ IDEA version 8.1.1, currently available as Release Candidate 1 from EAP will feature a lot of small and useful improvements to its built-in Struts 2 support.

Among the others, you will find a better New Project wizard, added support for more CSS attributes from Struts’ UI-Tag Library, as well as support for new elements from Struts 2.1 DTD-based configuration files (see the complete list of changes).

Do you like to write your actions in Groovy? Now you can navigate back and forth between your Groovy-Action and struts.xml using the Struts-Gearwheel in the editor gutter bar:



Stay tuned for more improvements and new features in IntelliJ IDEA 9 (”Maia“).