You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Juan Algaba <ja...@colef.mx> on 2022/07/01 20:59:39 UTC

Re: Netbeans IDE Editor Line Wrap Setting Not Working (Java)

> not integrated into the tools in the IDE in any other way
I'm pretty sure the "red margin" determines where wrapping will happen in
javadoc multi-line comments one you format the file

80:
[image: image.png]

50:
[image: image.png]


On Thu, Jun 30, 2022 at 1:02 AM Geertjan Wielenga
<ge...@googlemail.com.invalid> wrote:

> The red margin is just for you to set a place at which you know your code
> should end, it's just a visual indicator for your own eyes, not integrated
> into the tools in the IDE in any other way.
>
> Gj
>
> On Thu, Jun 30, 2022 at 8:46 AM Ben Kao <be...@hotmail.com> wrote:
>
>> Hi
>>
>> It seems strange to me because it wraps at the edge of the screen whether
>> the screen width is less than or greater than the "red margin". It's as if
>> there's no point to having the "red margin."
>>
>> Can someone clarify on this?
>>
>> Regards
>> Ben
>> ------------------------------
>> *From:* Jeremy Faden CS <fa...@cottagesystems.com>
>> *Sent:* Thursday, 30 June 2022 6:16 AM
>> *To:* Ben Kao <be...@hotmail.com>; users@netbeans.apache.org <
>> users@netbeans.apache.org>
>> *Subject:* Re: Netbeans IDE Editor Line Wrap Setting Not Working (Java)
>>
>>
>> It will only wrap if the window is not wide enough.  From your screenshot
>> it looks like it's past the "right margin" which is only a mark indicating
>> where 80 columns is.
>>
>>
>> Jeremy
>>
>>
>> On 6/29/22 14:03, Ben Kao wrote:
>>
>> Hi
>>
>> I am writing code in JAVA. I tried to turn on Line Wrap by setting it to
>> for example Anywhere but it doesn't work. Here are my settings below.
>> I'm using All Languages mode, my Netbeans IDE is version 14 and I'm on
>> Windows 10.
>>
>> All Languages settings:
>>
>>
>> Java settings (set to Use All Languages):
>>
>>
>> Finally, what my code looks like:
>>
>>
>> As you can see on line 34, it doesn't wrap.
>>
>> Any idea what's going on?
>>
>> Thanks
>> Ben
>>
>>

-- 

-Juan Algaba