IntroductionHighly customizable cursor/selection overlay extension.
This extension displays selection status overlay on real time as you change the
cursor/selection position, which is equivelant of When you change setting, please read the 📌 pinned description thoroughly and try it. If you want to build this extension from the source code, run
QuickstartOpen command palate and search for
Then Select Recommanded
This is how the recommanded overlay preset
If you are using light theme, there is a color preset for the light themes
Preview: Cursor Only Highlight
When only a cursor is on an editor. No characters in selection. Preview: SingleLine Highlight
When selection is a single line. Preview: MultiLine Highlight
when selection is only 1, and the selection is Multi-Line. Preview: MultiCursor Highlight
When selection is more than 1; and multi-Cursor editing. Preview: Diagnostic
Extension will display the diagnostic status of current editor/workspace. You can change visibily, fixtures, position, format or even Text to Glyph/Emoji.
Editor diagonotic will point (equal, up or down) where the problem lines are based on current cursor position. So far, everything in the examples are on default configuration. Configruation GuideCommands
On setting UI
Feature Guide
Cursor/selection highlightAs the examples in the introduction, you can apply the borders and background to selection lines. The confugrations are very clear to understand, the only thing that you need to know is that highlight color values shares same opacity value from 'General.' You can also use string literal 'null' to disable the color for border and background. Selection Status
Most of configurations are quite straight foword and they are well explained in configuration section.
You will see cpu usage spike when you repeatly/rapidly drag up and down while you are on multi-line selection. This is becuase the selection change event can be triggered at average rate at 1000 per second even with some overhead. The event even could reach 0.3ms between the event call. I would like to implement throttling features to reduce the cpu usage only for multi-line selection. I tried optimise the performace of multi-line selection, and performance has been improved greatly but it still can spike some if the one repeat the active. Recently, multi-cursor has been updated to have ascending selection index based on line number becauset the selections array is indexed based on selection action sequence. Selection array had to be sorted based on line number to have top-down index, and code is not very optimised. You could the input responce slows down when you rapid-fire multi-cursor selection action. This i would like to fix and update soon. Diagnostic status
Diagnostic status indicate the same entry in probelm view as the screenshot.
The configurations are some what complicated, due to complexcity of customizability of status block. It kinda over-extend when selection status is enabled too, especially if you use horizontally split editors. I would advice to change the position of diagnostics from setting 'Visibilty'
Setting to next line put diagnostic on the line bellow where the cursor is.
I would like to kindly advice to read the 📌 pinned description thoroughly and try it youself. i will try to list the template strucutre briefly.
Git OverlayHere is the sameple screenshot of the part of the overlay where it starting with git icon. When checked-out branch has 2 changes and active editor is on git indexed path
When checked-out branch is clean and active editor is on git indexed path
When checked-out branch has 2 changes but current active editor is on ignored path
When change has an index that are in .gitignored.
When active editor is on not-indexed path
Cross-os-workspace
LastlyIf you use glyph fonts such as powerline or nerdfont, glyphs in those fonts can be used to customize the contentText too. (You will need to change the editor font to the ones with that glyphs) I may add font family configuration in the future iteration but i can not guarantee when. I hope you like this extenion and find this extenion as small upgrade to QOL of using vscode. Thank you for reading. Feel free to open isseus if you find one, or any feedback or comment is more than welcome. |























