I’m editing an XML file with the Eclipse IDE and need to input paragraphs of text. It doesn’t seem that eclipse has a line-wrap feature though. Anyone knows if it does or if there’s a plugin for that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As mentioned in the post by VonC on this same page. Eclipse now has this capability as of 06/2016 Neon.
Try this plugin Eclipse platform plugin
It looks like eclipse only has the ability to do it manually on its own and here are the commands. At that point you must reformat the highlighted text manually.
It’s not terribly obvious how to control Eclipse line width and line wrapping in your Java source files. Here’s how and where:
Comment width and line wrapping is set in
Preferences->Java->Code Style->Formatter, then click on the Edit button and select the Comments tab. I like Line Width for Comments to be 120.Code line wrapping is set nearby, in
Preferences->Java->Code Style- >Formatter, then click on the Edit button and select the Line Wrapping tab. I like a line width of 120 and indent size of 4.Indentation is set separately, in
Preferences->Java->Code Style- >Formatter, then click on the Edit button and select the Indentation tab. I like an indent size of 4, consistent with the Line Wrapping indent setting.As if that’s not enough, you can also set printer margins, tab size, etc, in
Preferences>General>Editors>Text Editorswhere I set the Displayed Tab Width to 4 and Print Margin Column to 120 or more.You can also check the Show Print Margin box to get a faint vertical line at the printer margin column