Word Wrap on the Beans Network

Netbeans is great, but there is no way to wrap text in it (or hopefully I haven't found it yet). Is there a way to do this, and if not, is there a similarly good IDE for Java with this functionality (hopefully also free).

+21
java javabeans ide netbeans
Nov 01. '08 at 17:56
source share
17 answers

You can use word wrap in Netbeans.

Add to netbeans.conf (netbeans_installation_path / etc / netbeans.conf by default /etc/netbeans.conf for Linux):

-J-Dorg.netbeans.editor.linewrap=true 

to the sixth line so that it looks like this:

 netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dorg.netbeans.editor.linewrap=true" 

and restart Netbeans.

Set the Linear Wrap parameter in Tools-> Options-> Editor-> Formation.

Works great for me on Netbeans 6.9 and 7

+45
Oct 30 '10 at 14:25
source share
— -

If you are engaged in web development, you will understand why text wrapping is important.

A programmer who never got dirty hands with HTML never saw a real network. You can insist on MVC whatever you want, but 99.9% of the worldwide network since its inception has not been built in this way. If you don’t always start from scratch and can use MVC to separate HTML code, and provided that you have a desktop web designer who does html / css / javascript, or you have an interface designer, which you can deceive him MAKE SURE to deal with everything that was developed / blocked / hacked along with what was ever at hand or popular or accessible at that time and now more or less functions as a "web application". And 99.9% of the time you have to work with is a combination of some programming language, most likely interpreted, with html and javascript mixed on one page.

And that means the lack of nice short lines of neat, clean Java code that ends up to 80 characters so conveniently.

And when you deal with this — which, dear hearts, is a big part of the Internet — you magically discover a flashy need to wrap text so long lines don't make you scroll waaaay to the right to get to the end of it.

Some people. Sheesh. They think that the entire development universe always fits into 80 characters on each line, and from some of these comments they seem to think that it will always be.

+22
Jun 23 2018-10-18T00:
source share

Netbeans 7 is missing and it supports word wrap out of the box!

+4
May 05 '11 at
source share

There's a word-wrap eclipse plugin: see http://ahtik.com/blog/eclipse-word-wrap/

+1
Feb 25 '09 at 10:00
source share

As Joseph said: why do you need it. Java is not white space sensitive and has very long statements, so your code is not easy to read.

+1
Mar 26 '09 at 5:28
source share

He always returns to Ultraedit.

Why can't we as a human figure understand this? netbeans, eclipse, zend studio (eclipse), etc. Do not do something very simple for programming that most programmers who had to have in order to preserve conditional coding. Of course, it is true that the coding style contributes to the length of strings (erm microsoft programmers, perk your ears), but sometimes long string literals cannot be avoided. This is madness! And yet I cannot be crazy or ungrateful because it is open source. And I'm grateful. However, you need to think about wtf programmers who make these editors actually use themselves.

I want the editor to wrap itself in a column of 80 or 120, and not at the edge of the window, like notepad ++. The only tool I found that does hard / soft packaging is ultraedit, so maybe I should try to figure out if I can make it work under wine, as the UE is the only "real" editor that does this work other than something weird / ugly / takes forever to learn and tune in like emacs. And I do not go down this road - it gives me migrants to look at it, because it is 2009, and we have cleartext and guis.

Is it really a difficult problem to solve? If you draw a line down the x column and your word crosses it, then start the word under the digression of the line from which it was started, and mark the spread across the line as a wrapper line. Done.

+1
May 05 '09 at 23:55
source share

Actually, I heard that netbeans is going to add the word wrapping feature in version 6.7, but then they decided to enable this feature in 7.0. we hope that in the next issue we will see word wrap, according to a few developers, this is not a necessary function, but for web developers it is absolutely necessary.

+1
Aug 15 '10 at 5:22
source share

This site has a great blog.robbychen.com solution

The bottom line is to add the following line inside quotation marks for netbeans_default_options inside the configuration file, and then restart netbeans:

 -J-Dorg.netbeans.editor.linewrap=true 
+1
Feb 12 '11 at 2:00
source share

Except that Eclipse does not support word wrap, and they have not even set up a goal for this. Like Netbeans, many users ask this, but has never been enabled. This seems to require a lot of changes, and also does not seem to be a priority for developers. Once there was the beginning of a plugin that tries to limit word wrap, but, of course, it does not work in recent versions.

0
Feb 09 '09 at 9:05
source share

When you get to the desired line, just start a new line without ending the statement. It can underline it in red until you finish the statement, but that does not lead to any exceptions.

I find this is also a good way to organize long println () statements.

0
Mar 26 '09 at 1:57
source share

Komodo Edit. In addition to its many other wonderful features, it actually wraps the lines.

0
Oct 11 '09 at 15:33
source share

2 points:

  • It just turned out that the packaging is really needed if you want to explore these damned SVG sources that are automatically generated when you install components from the SVG palette ...

  • I'm going to solve my current problem by seeing the full SVG source using copy-paste in jEdit, which is configured as Ultraedit (in terms of wrapping) and FoC!

0
Mar 10 '10 at 23:37
source share

As already noted, the answer is "you cannot." Like everyone who uses Visual Studio and Eclipse products every day when I use Eclipse, I constantly skip the wrapping functions of Visual Studio strings, which I can turn on and off with a keystroke.

Many people who say “you don’t need it” stop being so lenient. Just because you don’t need a function does not mean that no one in the world does this. Even if someone had to adhere to the advice “never have a line of more than 80 characters”, you will need to edit the code that others composed and contains more than 80 characters. And especially in the web world, lines can become extremely long. It is inevitable that you will spend a lot of time looking at other people's code, which will go over 80 characters.

jEdit wrapping around the line is very good. It keeps indentation and can be turned off very quickly. If I deal with very bulky long strings, I sometimes copy / paste jEdit (which offers syntax highlighting for many languages) and uses the wiring available there.

0
Oct 01 2018-10-10
source share

The new version of Netbeans supports it. See this post for instructions:

Word Wrap on Netbeans

0
Jan 12 2018-12-12T00:
source share

Of course, word wrapping is useful for encoders - how about when you write README.txt files, and you have to adhere to coding standards like http://drupal.org/node/161085 , which says there should be a cover of 80 characters.

0
Sep 10 '12 at 11:31
source share

In netbeans 7.3, you go to formatting tools-> options-> editor->, in the left pane of the menu, select the lowermost drop-down menu that says about the wrapper, select your preference ... done

0
May 12 '13 at 17:59
source share

Get a bigger monitor.

In 1920 x 1080 you do not need covers with text.

Update: Wow, still getting downvotes. Maybe this is exactly how I said it. At least he has not yet waited for an Eclipse response.

I really thought this was a legitimate offer. I never thought that having a larger monitor would make it as important for coding as it was for me. If you are using a small monitor for code, please consider getting a good big new one. This eliminates the need for word wrapping in many cases.

-7
Mar 26 '09 at 21:22
source share



All Articles