Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question
2  
Is this any help: Does Eclipse have line-wrap ? –  Yves Klett Aug 23 '13 at 11:19
    
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. –  Berg Aug 23 '13 at 12:01
    
With some luck, some more Workbench-savvy members will come up with something useful. –  Yves Klett Aug 23 '13 at 12:02
    
"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. –  rm -rf Aug 23 '13 at 13:47
add comment

1 Answer

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.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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