Results 1 to 10 of 10

Thread: Line Wrapping

  1. #1
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default Line Wrapping

    Is it possible to line wrap in Eclipse? Like in NetBeans? Possibility even have the vertical line at 80 width? I went to Preference > Java > Editor > Typing and wrapping string literals was already checked. Then I made my own Formatter (Preference > Code Style > Formatter > Edit > Change name to "Aziz" > Select all possibilities and select wrap all the time). It still does not wrap the freaking text! Any help is appreciated. Thanks in advance!
    Last edited by Lil_Aziz1; 06-24-2010 at 05:56 PM.
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

  3. #3
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    it was already set to 80.
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Is there an option on the editor popup? I've remember that in IntelliJIDEA has the similar option. Right click on your editor and check on the pop-up menu.

  5. #5
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    Ooh okay so I made the margin at 80 width show, but it still won't wrap. To show the margin, I did: Preference > General > Editor > Text Editors > Check "Show print margin"
    Still would like Eclipse to wrap the text :\
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  7. #7
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    Nope :(. After some more googling, I did find this:

    How can I force line wrap in Eclipse Editor? - Dev Shed > EclipseZone - Word Wrap in the Eclipse Editor ...

    Basically, to wrap lines in Eclipse, one needs to download a plug-in. This plug-in comes with a disadvantage: "He then proceeds to give a stern warning that this plug-in doesn't go so far as to fix so many of the side-effects this will produce. This particular release is naturally experimental because so many of the Eclipse features (annotations, line numbers, 'go to line', and so forth) will almost always be disrupted by this feature. "

    Think I can live without a line wrapper ;)
    Thanks guys!
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    I think that's one of the weak point I've seen in Eclipse. Most of the key features are comes with their party packages, in plug-ins. Do you really think that's okay?

  9. #9
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    :| I completely agree with you. Do other IDEs like NetBeans do the same thing? Honestly, even if they didn't have the same problem, I probably wouldn't switch Eclipse to NetBeans because I've gotten so comfortable with using Eclipse.
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Even NetBeans has large number of plugins, but most of the default features are comes with the default package. I would say what you really need is there in the default installation package.

Similar Threads

  1. Replies: 4
    Last Post: 09-10-2009, 10:18 AM
  2. What does this line mean?
    By JDAWG in forum New To Java
    Replies: 3
    Last Post: 04-22-2009, 06:42 AM
  3. Replies: 9
    Last Post: 04-07-2009, 03:51 AM
  4. Reading in data from file line by line
    By bluekswing in forum New To Java
    Replies: 1
    Last Post: 10-02-2007, 12:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •