I'm using IntelliJ 12 and It's putting my member variable annotations on the same line, which i hate! How do I setup the code formatter to keep annotations on separate lines?
thanks!
Navigate to Preferences → Editor → Code Style → Java → Wrapping and Braces tab , then locate the section Field annotations and check the option Do not wrap after single annotation .
In IntelliJ v14:
In IntelliJ 12 You can find it in setup here (bottom right):
I think all the above answers are correct but here is step by step for Mac users:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.