Replies: 1 comment
-
Visual studio displays the absolute line number, there is a relative line number extension but it does not seem to available for the current version, I just checked settings and there is no relative mode available natively. I’m comfortable using the modulo line numbers for selections, without relative line numbers I only use relative selections for small selections scopes. I would say stick with Modulo 100 for the spoken form of row, the only conceivable problem being people with portrait mode monitors that display more than 100 lines, in which case take row, should no longer work.
Cheers
John
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
We have three different types of line number:
"take row twenty"
will take the only visible line that is 20 modulo 100"take up five"
. These are relative to the "primary cursor" when you have multiple cursors. This corresponds to the way VSCode shows the line numbers when you have the"editor.lineNumbers": "relative"
settingThe question
What is the right abstraction that will be portable across editors? Do other editors have relative line numbers? Do they implement them the same way (ie relative to the "primary" cursor)? Do other editors even have a notion of the "primary" cursor?
Relevant links
cc/ @rntz @phillco @JohnEfford @dyamito
Beta Was this translation helpful? Give feedback.
All reactions