File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes How could I set my Eclipse when I do code identation / identing by CTRL+SHIFT+F my code stay unorgan Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How could I set my Eclipse when I do code identation / identing by CTRL+SHIFT+F my code stay unorgan" Watch "How could I set my Eclipse when I do code identation / identing by CTRL+SHIFT+F my code stay unorgan" New topic
Author

How could I set my Eclipse when I do code identation / identing by CTRL+SHIFT+F my code stay unorgan

André Asantos
Ranch Hand

Joined: Nov 23, 2009
Posts: 234
How could I set my Eclipse when I do code identation / identing by CTRL+SHIFT+F my code stay unorganized:



goal:
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

The default formatting settings use a maximum line width of 80 characters. If you want to change it, go to Preferences->Java->Code Style->Formatter->Edit... Give a name to the new profile, go to Line Wrapping, and change maximum line width to a bigger value. Apply and close.


[My Blog]
All roads lead to JavaRanch
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Whether or not you'll be able to get the closing brace indented like that is another matter, and it might depend on which version of Eclipse you're using.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How could I set my Eclipse when I do code identation / identing by CTRL+SHIFT+F my code stay unorgan