Code Style by File Type/Language Possible?

Is it possible to define a different code style based on language?  I know there are language options for indentation but I want different wrapping/brace rules.

Specially, I want the brace wrapping rules for Java to be different than for Groovy or Javascript?  Is this possible?

Thanks.

3 comments
Comment actions Permalink

You'll get it in IDEA 11!
EAPs will start shortly.

0
Comment actions Permalink

But in IDEA 10.5 you already can switch 'Preview' tab between Java/JavaScript and configure different Wrapping and Braces settings.

0
Comment actions Permalink

To state it more clearly: Yes, you can, simple switch the incorrectly named "Preview" tab. The options are in fact remembered per language.
It is a strange UI design which has been much improved in IDEA 11 (see http://youtrack.jetbrains.net/issue/IDEA-69785 )

On 08.09.2011 23:11, Dan Karipides wrote:

Is it possible to define a different code style based on language?  I know there are language options for indentation but I want different wrapping/brace rules.

>

Specially, I want the brace wrapping rules for Java to be different than for Groovy or Javascript?  Is this possible?

>

Thanks.

>

---
Original message URL: http://devnet.jetbrains.net/message/5318821#5318821


0

Please sign in to leave a comment.