Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to wrap words/lines in NetBeans IDE 6.9.1?

I searched for "wrap" in keyboard mappings without success. I don't see this option in menu neither.

EDIT: I was thinking about result the you get let's say in Notepad2 by pressing Ctrl+W (or selecting View -> Word Wrap). So I'am asking about toggling such Word Wrap

like image 874
Dawid Ohia Avatar asked Nov 15 '10 15:11

Dawid Ohia


2 Answers

In Tools->Options there is a whole section on line wrapping. The options you choose here will depend on how you need to do the wrapping - it is quite configurable.

  1. Go to Tools->Options.
  2. Click on Editor in the ribbon at the top.
  3. Choose the formatting tab.
  4. Choose the language you require the wrapping for it the Language combobox.
  5. In the Category, choose Wrapping.
  6. Configure how you would like the wrapping to take place.

Hope this helps...

like image 133
YetMoreStuff Avatar answered Sep 29 '22 21:09

YetMoreStuff


Stolen from Sidarta's tip in this SO post:

You can use word wrap in Netbeans.

Add to netbeans.conf (netbans_instalation_path/etc/netbeans.conf):

-J-Dorg.netbeans.editor.linewrap=true and restart Netbeans.

In Options->Editor->Formating there is Line Wrap dropdown option

Works fine for me in Netbeans 6.9

like image 25
Myer Avatar answered Sep 29 '22 19:09

Myer