12

When you mouse over line numbers in IDEs, such as Visual Studio or Notepad++, the mouse cursor is flipped horizontally. I can't think of a reason this would be a ubiquitous user interface decision. Line numbers are already set apart from the code by colors or lines, and the cursor flip doesn't prevent the obstruction of the numbers, or make setting breakpoints easier. Does anyone know why this is a common decision?

29

The first time I saw this behavior was with Office 95. Word, to this day, still does this.

Word 2010 with cursor change

In Word and Other applications like Notepad++, this cursor change indicates "a whole line" is the point of selection. Clicking while the cursor is in this state will select the entire line.

Selecting an entire line in Word 2010

Selecting an entire line in Notepad++

Selecting an entire line is especially useful activity in text editors like Notepad++ when the line can end beyond the right portion of the screen. Clicking and dragging in this space will select multiple lines. Changing the cursor gives the user a cue that some different action can be made. This invitation to click is non-destructive and explorable.

On a personal note, when the cursor does not change (e.g. Eclipse IDE), I'm frequently disappointed by the lack of this feature.

  • Ah, that makes perfect sense. Thanks for the information! – Mike Precup May 31 '13 at 20:40
  • the only downside really is that it becomes annoying to click before the first char in the line with the mouse, (a small buffer zone will fix this) – ratchet freak May 31 '13 at 20:57
  • @ratchetfreak I agree. That "buffer zone" exists in word, but not Notepad++. It's a simple design and coding issue that would be easily fixed, but I've never lauded N++ as a high-UX project. – mawcsco May 31 '13 at 21:01
  • Awesome answer. Note that Visual studio does this (2008-2017). Visual Studio Code does this. Apparently Notepad++ does this. Sublime doesn't though. You'll have the same behavior of entire line selection, but the cursor won't "flip". Now that i've read the answer, at least I know what to expect :) – Noctis Jun 13 '18 at 23:25

protected by Community May 1 '17 at 16:13

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.