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.
请先登录再写评论。
You'll get it in IDEA 11!
EAPs will start shortly.
But in IDEA 10.5 you already can switch 'Preview' tab between Java/JavaScript and configure different Wrapping and Braces settings.
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:
>
>
>