This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 228452 - add option to place "line wrap" symbol at the beginning of the next line instead of the end of the previous line
Summary: add option to place "line wrap" symbol at the beginning of the next line inst...
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-10 17:15 UTC by athompson
Modified: 2016-07-07 16:00 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2013-04-10 17:15:28 UTC
Since we (usually) read/code going from left to right, when scanning code our eyes are usually on the left side of the page. This is especially true since most statements are short, and the most important parts are almost invariably at the beginning of the line. That's where the line wrap symbol should be, so that one can more easily distinguish between a new statement and a continuation of a previous statement. Additionally, this is how most editors which implement line wrap work, for good reason.

I haven't looked at the code, but this would very likely have the benefit of eliminating some of the glitches with the current line wrap implementation where the scroll bar will sometimes show up anyway (especially with variable-width fonts). This is likely because the line wrap algorithm is something like:

if the next char won't fit on the line
  remove previous char
  add line wrap char instead
  go to next line
...

The problem is that with variable-width fonts, the previous character may not be as wide as the line wrap character, so when the line wrap character is added the line still may be too long and the scroll bar shows up. The reduced line width caused by the scroll bar exacerbates the problem.
Comment 1 qazzi76 2013-06-26 22:34:37 UTC
Not sure I fully agree, however we do need more line wrap options in order to meet all our different needs.
Comment 2 Martin Balin 2016-07-07 07:27:17 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 3 athompson 2016-07-07 16:00:29 UTC
It's still there as described, but I'll lower the priority. It's it's especially an issue for languages where the (perceived) semantics could change depending on the line/indentation something is on (like YAML).