Reputation: 13240
Whenever I run the IntelliJ autoformatter - it converts this:
@Autowired private CustomerDao customerDao;
into this:
@Autowired
private CustomerDao customerDao;
How can I stop it from doing that?
Upvotes: 26
Views: 4668
Reputation: 324
For me works well: Preferences → Editor → Code Style → Java → Wrapping and Braces → Method annotations → wrap always
Upvotes: 0
Reputation: 401877
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:
Upvotes: 39