Well, if you ask me why I left Netbeans and started using phpStorm; I will say first: Speed, second: Line wrapping along with few other reasons. I’ve used Netbeans for quite sometime but I was very irritated as it did not have good line wrapping support. Some users may wonder why I am saying ‘good’ as it did not have any line wrapping at all.
The fact is that, line wrapping was implemented in earlier versions too but was not enabled by default as it was not stable. It can be enabled by editing a configuration file but it was causing lots of troubles while coding. However, as the latest version, v7.0, is released on 18th April 2011, line wrapping is now available without any such hacking and so far it is good to me.
How to enable Line Wrapping?
Go to Netbeans -> Preferences (or press CMD + ,) -> Editor -> Formatting
You will notice a drop down labeled as ‘Line Wrap’. Choose ‘After Words’ or ‘Anywhere’ as per your wish and then hit OK.
That’s it. Simply open a file (opened files need re-opening) and you will not see horizontal scroll-bars :).