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.


RSS
LinkedIn
Facebook
48 Comments
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
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!
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!
Stack trace sent, happy coding!
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?
0.0.2 is much better. It is a new version
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!
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.
This is a very useful plug in. Is there any keyboard shortcut for this feature?
When I try to install I am getting error like unable to access “http://ahtik.com/eclipse-update/” timed out.
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 ?
For me it works, could you try again? getting the same error? btw, a new version with shortcuts etc is coming out soon
Line counting is broken with the wrapping, and make it dificult looking for code bugs.
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.
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.
any progress on this project? when will it be out of alpha? and yes i’d like my code “hard” wrapped too :/
Thanks Ahti!
Hope you can get it to play nicely with line numbering as per earlier posts esp. PDT in the near future.
Nice plugin, man! It really helps when writing long lines codes… Great work!!!
When I try to install I am getting error like unable to access “http://ahtik.com/eclipse-update/†timed out.
Hi,
great plug in but why does the text get unwrapped every time I browse to a different tab?
–Usman Ismail
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
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!)
ohh, excellent suggestion, thanks!! Will take into account!
It works just fine . Nice one. Thanks a lot.
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
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.
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.
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.
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:
Great Tool.. Thanks
From Paraguay!
Hi would love to know if the next version is ready? It’s been a few months since your last update.
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 ?
Thanks for bringing me yet another step closer to a workable development environment.
Thank-you for your hard work, it’s really appreciated.
Any plans to not reset the word wrap setting when reopening a file? Or to enable it across the entire project? Thanks!
Thank you and the subject site’s outstanding
منتديات,فحص
البيج رانك,دليل مواقع
Brilliant! Thanks!
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???
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.
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.
This tool ist great for my needs. Thanks a lot!
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
Awesome! Thanks so much for this. I am also really surprised that Eclipse does not have word wrap.
Thank you!
This is great! working perfectly with my aptana studio 3.0. how could they develop such an IDE without a word wrap feature?
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.
Works as expected and that’s all I could ever ask for. Thanks Ahti.
you welcome! : )
2 Trackbacks
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 >…
[...] Word Wrap plugin [...]