First alpha of eclipse word wrap released!

First experimental version (0.0.1) of eclipse word/line wrapping is now released to test plugin release cycle, update-site
structure and deliver almost working version of wordwrap!

The first version of word wrap is using eclipse SWT own wrap functionality that is disabled in eclipse SDK text/java editors. This plugin is basically just providing context menu option to turn this wrap on/off for active editor. It should be usable enough and I’ll encourage everyone to give it a try – it will make your life easier!

And now comes the warning!

Current alpha-version of Virtual Word Wrap does not work properly with line numbers, line highlight etc! But this error is just temporary – after turning wrap off you should have everything back to normal.

I’m definetaly working on this rendering issue and maybe eclipse StyledText wrap cannot be used at all to keep this wrap functional for line highlights etc. It would be possible but this will most probably require rewriting all affected plugins – which is too much!

Getting wordwrap-0.0.1

I’ve set up eclipse update site http://ahtik.com/eclipse-update/ that you can add as a remote update site in eclipse and just go ahead to install first alpha-version of wordwrap!

UPDATE!

Reporting errors

Add any errors you encounter as comments to this post.
Also send .log from workspace/.metadata/ directory to ahti.kitsik@gmail.com

Please do not report bugs about damaged rendering of line highlight, line numbers and other rendering-related issues.
But no harm done if you do – then I’m able to notify you when issues are fixed.

48 Comments

  1. Hi

    I gave it a quick try. Installing went just fine but when i opened an editor and (un)ticked the “Virtual Word Wrap” from the context menu all i got was “The chosen operation is not currently available.” information message.

    I’m using eclipse Version: 3.2.0 Build id: I20060428-1315. I tried the word wrap with the java editor and a simple text editor (actually i just opened a .java file and a .txt file :) ).

    Toomas

    Posted June 19, 2006 at 9:22 am | Permalink
  2. Thanks for the feedback, tom!
    Was your step-by-step actions similar to R.J. Lorimer at
    http://www.eclipsezone.com/eclipse/forums/t74384.html
    ?
    I know that this error message appears to me when I tried to invoke action in a place in a wrong context. With this first release I tried to remove all possibilities to show this context-menu option in a wrong place.
    Looks that still something was left out :)

    To reiterate, please check that forum post and let me know exact method you have used to open this context menu.
    Thanks again!

    Posted June 19, 2006 at 4:02 pm | Permalink
  3. Tom, Please be sure to send me the workspace log file when you get this “The chosen operation is not currently available” error again! Thanks!

    Posted June 19, 2006 at 7:37 pm | Permalink
  4. Stack trace sent, happy coding! :)

    Posted June 20, 2006 at 9:36 am | Permalink
  5. Thanks! Your problem (actually mine) was java version (Unsupported major.minor version 49.0).
    I unintentionally compiled plugin for java5.0.

    Will try to fix this today evening and make this available as 0.0.2.
    Probably just replacing binary of 0.0.1 version is not very good idea? or is it?

    Posted June 20, 2006 at 12:34 pm | Permalink
  6. 0.0.2 is much better. It is a new version ;)

    heru
    Posted June 20, 2006 at 5:15 pm | Permalink
  7. Thanks a ton for this very useful feature. The first additional feature request: when this gets it’s own preferences, please let me set the indent level for wrapped lines – it would be nice if I could set it to some constant, at least – like 5 column. Even better would be something like “initial line +5″ so that all wrapped lines were indented 5 from the starter line. In the meantime, thanks again!

    Posted July 11, 2006 at 7:11 pm | Permalink
  8. Hi there, just wondering if there was a way to create an auto-hard word wrap in Eclipse. I want it to follow the format guidlines automatically (without hitting Cntrl + Shift + F).

    Any way to do that, or does your plugin help with that?

    Thanks.

    Bryan
    Posted January 20, 2007 at 7:05 am | Permalink
  9. This is a very useful plug in. Is there any keyboard shortcut for this feature?

    Loke
    Posted May 19, 2007 at 7:02 am | Permalink
  10. When I try to install I am getting error like unable to access “http://ahtik.com/eclipse-update/” timed out.

    syed
    Posted August 20, 2008 at 5:10 pm | Permalink
  11. When I try to install I am getting error like unable to access “http://ahtik.com/eclipse-update/” Connection time out.

    Is there any other way to install this feature ?

    syed
    Posted August 20, 2008 at 5:38 pm | Permalink
  12. For me it works, could you try again? getting the same error? btw, a new version with shortcuts etc is coming out soon :)

    Posted August 22, 2008 at 3:25 pm | Permalink
  13. Line counting is broken with the wrapping, and make it dificult looking for code bugs.

    kNo
    Posted September 23, 2008 at 11:43 am | Permalink
  14. Uh, as a very old man and one who really would prefer to use vi/Vim, I’m looking for a “hard” line-wrapper. I don’t want my lines wrapped virtually, but hard-wrapped since I otherwise have to do it by hand.

    Posted September 24, 2008 at 12:03 am | Permalink
  15. I’m japanese HTML author.
    I trying out wordwrap by Aptana studio 1.1.6(standalone) & Eclips-3.4 + plug-in version on Linux.

    Thanks!!!!!!

    In Japanese or CJK have no ‘space charactor’ between the words at writing.
    So, absolutely needed word wrap function of edditor.

    tanaka
    Posted September 25, 2008 at 5:58 pm | Permalink
  16. any progress on this project? when will it be out of alpha? and yes i’d like my code “hard” wrapped too :/

    Posted September 26, 2008 at 8:10 am | Permalink
  17. Thanks Ahti!

    Hope you can get it to play nicely with line numbering as per earlier posts esp. PDT in the near future.

    Ed Daniel
    Posted October 2, 2008 at 5:07 pm | Permalink
  18. Nice plugin, man! It really helps when writing long lines codes… Great work!!!

    Posted October 6, 2008 at 10:35 am | Permalink
  19. When I try to install I am getting error like unable to access “http://ahtik.com/eclipse-update/” timed out.

    Posted October 22, 2008 at 5:54 pm | Permalink
  20. Hi,

    great plug in but why does the text get unwrapped every time I browse to a different tab?

    –Usman Ismail

    Usman Ismail
    Posted October 28, 2008 at 2:32 am | Permalink
  21. Hi Usman!

    There are a couple of enhancement in progress right now and hopefully new version will get released soon, within weeks. I’ll let you kow.

    thanks!

    PS. Amazing that people still manage to type the recaptcha words. Sorry for that! I wish I would know something just as efficient..

    regs,
    Ahti

    Posted November 3, 2008 at 9:44 pm | Permalink
  22. Thanks much for creating and publishing this extension. I’m a new student of programming, and Eclipse is my first IDE, my OCD was killing me. Thanks again for this extension. Dare I ask, is it possible to enable this functionality in Eclipse’s “console” as well? (One can dream!)

    Abisha
    Posted November 11, 2008 at 7:55 am | Permalink
  23. ohh, excellent suggestion, thanks!! Will take into account!

    Posted November 12, 2008 at 11:42 am | Permalink
  24. It works just fine . Nice one. Thanks a lot.

    nocommerce
    Posted November 14, 2008 at 3:16 pm | Permalink
  25. Hello,
    I’m so happy to have found your blog … I’m just discovering PDTEclipse, and the missing word-wrap fucntion was a pity !
    Maybe your next version will resolve numbering “errors” ? I hope so … or that eclipse itself will in the future resolve it.
    Thank’s

    Emmanuel
    Posted November 30, 2008 at 10:44 pm | Permalink
  26. hey, i’m using eclipse SDK 3.4.1 Build id: M20080911-1700 and i installed the plugin but i don’t get the ‘virtual word wrap’ on any of the menus, therefore cant use it.

    xsk
    Posted November 30, 2008 at 11:24 pm | Permalink
  27. We have internally already a new version ready to be shipped soon. Line numbers etc are not working yet but at least new features include keyboard shortcuts and toolbar button for enabling/disabling wrapping.

    Posted December 1, 2008 at 12:12 pm | Permalink
  28. xsk, I’ll make sure that new version will work with 3.4.1.

    Drop me a line by e-mail if you want and I can notify you when the release is out.

    Posted December 1, 2008 at 12:13 pm | Permalink
  29. Thanks for the good plugin. It would be great if the word wrap is done with the mention of the indentation of the code lines. That would make the code more comfortable for reading.

    Smth like that:

    Ilya
    Posted February 7, 2009 at 7:55 pm | Permalink
  30. Great Tool.. Thanks
    From Paraguay!

    Posted February 18, 2009 at 11:26 pm | Permalink
  31. Hi would love to know if the next version is ready? It’s been a few months since your last update.

    Posted March 5, 2009 at 7:01 am | Permalink
  32. that’s awesome! Many thanks for that.
    I wish I can do the same for the run/debug console, got an idea how to do wrapping there as well ?

    youssef
    Posted March 18, 2009 at 5:32 pm | Permalink
  33. Thanks for bringing me yet another step closer to a workable development environment.

    Posted April 16, 2009 at 6:30 pm | Permalink
  34. Thank-you for your hard work, it’s really appreciated.

    Posted May 13, 2009 at 4:30 am | Permalink
  35. Any plans to not reset the word wrap setting when reopening a file? Or to enable it across the entire project? Thanks!

    wr
    Posted June 2, 2009 at 9:49 pm | Permalink
  36. Thank you and the subject site’s outstanding

    منتديات,فحص
    البيج رانك
    ,دليل مواقع

    Posted August 17, 2009 at 11:35 pm | Permalink
  37. Brilliant! Thanks!

    Shane
    Posted November 18, 2009 at 3:12 am | Permalink
  38. I pasted the file in the plugins folder… but the new menu item “Virtual Word Wrap” is not added to editor context menu. Where am I doing wrong???

    Posted December 14, 2009 at 6:52 pm | Permalink
  39. I have installed it according to the directions on your site. Similar to Comment by xsk — November 30, 2008 (comment #28), I do not see Virtual Word Wrap in any of the menus despite it being shown in the Eclipse software updates as installed. My version of Eclipse is Version: 3.4.2 Build id: M20090211-1700. I don’t think that it matters but my os is the native Japanese version of Windows Server 2003.

    Jeff
    Posted December 17, 2009 at 9:38 am | Permalink
  40. Soft-wrap is the ONE missing feature of eclipse that I really, really need… but I need line-numbering to work properly for it. Have there been any updates that fix these issues?

    Textwrangler does great soft-wrapping and handles the line numbers just fine with it, but of course, it’s not a complete IDE. However, if you could integrate TextWrangler’s editing power with the rest of Eclipse, it would be total heaven.

    AC
    Posted December 17, 2009 at 5:26 pm | Permalink
  41. This tool ist great for my needs. Thanks a lot!

    Anna
    Posted January 6, 2010 at 2:32 pm | Permalink
  42. Hi,
    I am a bit confused.
    I downloaded the thing, but it doesn’t show where I need it (it’s a FormText, not a TextEditor!).

    At a first glance it seems all it does is to setWordWrap() into the StyledText. Is it so?
    I do not need (or want) a pop-up-menu entry; I just want to programmatically set SWT.WRAP somehow.
    Can You help me?

    I saw a nice entry at http://wiki.eclipse.org/index.php/Word_Wrap_for_Text_Viewer_and_Editor
    Is there any implementation? I didn’t find anything.

    Regards
    Mauro

    Mauro
    Posted February 16, 2010 at 12:42 pm | Permalink
  43. Awesome! Thanks so much for this. I am also really surprised that Eclipse does not have word wrap.

    Curious
    Posted March 19, 2010 at 4:17 am | Permalink
  44. Thank you!

    Posted May 4, 2010 at 8:11 am | Permalink
  45. This is great! working perfectly with my aptana studio 3.0. how could they develop such an IDE without a word wrap feature?

    Posted July 9, 2010 at 8:00 pm | Permalink
    • silvia, it is a complex world with some really complex answers to simple problems :) word wrap is in that category. There IS a solution but its effort is for current case not too well economically justified.

      Posted July 27, 2010 at 8:36 pm | Permalink
  46. Works as expected and that’s all I could ever ask for. Thanks Ahti.

    Scott
    Posted July 15, 2010 at 2:50 am | Permalink

2 Trackbacks

  1. By Brajeshwar on August 2, 2006 at 11:24 am

    Word Wrap in Eclipse…

    It is still very buggy but we can live with it; you can enable Word Wrap in Eclipse. It screws up the line number, line height, etc but they will get back to their normal state once you turn off Virtual Word Wrap. How to install? Open Eclipse Help >…

  2. [...] Word Wrap plugin [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Anti-Spam Protection by WP-SpamFree