Line Numbers
Keep your place with an editor line-number gutter.
Availability
Implemented in the stable source; configuration and compatibility limits are described below.
Reviewed against stable v0.5.1. Rust candidate additions are labeled separately. Release status.
The pain this solves
- A file location is harder to discuss when the editor hides line positions.
What ships with it
- Toggles an absolute line-number gutter.
- Current-line highlighting is a separate setting.
- Relative and hybrid line numbering are not exposed.
Questions this answers
- Can the Chau7 editor show line numbers?
- Can I hide the line-number gutter?
- Does it support relative line numbers?
How it works
The editor's scroll view can attach a line-number gutter when the showLineNumbers preference is enabled.
Line numbers are absolute positions in the document. A separate editor setting can highlight the current line.
The stable editor settings do not expose Vim-style relative or hybrid line numbering.
Why it matters
Line numbers can make it easier to orient within a file and discuss a location. The stable control is a toggle for an absolute-number gutter.
Frequently asked questions
Can I turn line numbers on and off?
Yes. The editor settings include a Line Numbers toggle.
Are relative numbers supported?
The stable settings expose absolute line numbers, not relative or hybrid numbering.
Can I highlight the active line too?
Yes. Highlight Current Line is a separate editor setting.