I have been using Mathematica for a while and thought of using Worbench to structure my project better. However, moving my code from .nb-files to .m-files in a Workbench project does not really work, since unlike the Mathematica frontend Workbench does no line breaks.

Is there a way to enable auto line breaks in Wolfram Workbench? If not, how is one supposed to work with long expressions in Workbench?

  • 2
    $\begingroup$ Is this any help: Does Eclipse have line-wrap ? $\endgroup$
    – Yves Klett
    Aug 23, 2013 at 11:19
  • $\begingroup$ Hmm, so it seems Workbench has no line wrap. And installing the word-wrap plugin for various versions of eclipse does not seem to work with workbench. $\endgroup$
    – Berg
    Aug 23, 2013 at 12:01
  • $\begingroup$ With some luck, some more Workbench-savvy members will come up with something useful. $\endgroup$
    – Yves Klett
    Aug 23, 2013 at 12:02
  • $\begingroup$ "If not, how is one supposed to work with long expressions in Workbench?" — Since Mathematica doesn't have well defined standards for indenting/linebreaks/etc., it's up to you to break the code at places which makes reading easy (I don't like the NB's linebreaks). Also, if you're using the WB to create and maintain packages, the focus should be on clarity and ease of reading (for long term purposes), so perhaps you could try to not have reaaly long expressions and instead break them down to constituent functions and chain them. $\endgroup$
    – rm -rf
    Aug 23, 2013 at 13:47

1 Answer 1


This plugin works for me, just be careful with the steps:

  1. Help -> "Install new software", enter update-site in Work with field: "http://ahtik.com/eclipse-update/"
  2. "Word Wrap" item should appear in the name below, check it and press Finish.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.