What is this?
This shows newline (technically end-of-line) characters, similar to how Atom or Notepad++ do.
What can I customize? (Settings)
You can customize the color, opacity, and which character is used for each kind of end-of-line.
NOTE: after changing a setting, reload vs code for them to take effect. (This is done for performance reasons, but will hopefully will be changed in the future)
"color" : "#2a3f47",
"opacity" : 1.0
// there are more settings that can go in here
// see "ThemableDecorationAttachmentRenderOptions" on https://goo.gl/SYzyg8
// some other symbols you might want to use:
// see more at https://unicode-table.com/en/sets/arrows-symbols/
Can I toggle line endings with a keybinding?
Yes! There is no default keybinding, but there is a "Toggle (Show/Hide) Line Endings" command that you can use from the command pallet, and you can add a keybinding that maps to it.
You programmed this yourself?
Nope, the only reason this exists is because its updated/improved fork of https://github.com/sohamkamani/code-eol
The majority of the credit should go to them, my changes were relatively minor.
What does this fork improve?
- Fixes the character bounce issue when typing at the end of a line
- Lets you customize color and character choice
- Improves performance
- Adds more comments/documentation
- Adds toggle command for turning visible line endings on/off
What if there is a problem with the extension?
Then post a bug/feature request!
(to do that just create an issue on github: https://github.com/jeff-hykin/code-eol)
Both the opacity setting and the toggle command were created because people on GitHub asked for it.
NOTE: It might take me awhile to repond on GitHub (I only maintain this in my free time), but I will respond.