3 ms·
Thanks from a user ;) I cannot use any editor without vim keybindings, furthermore I love "relativenumber", however VSCode gives no API for relative numbers (th
by alfanick 10y ago
Thanks from a user ;) I cannot use any editor without vim keybindings, furthermore I love "relativenumber", however VSCode gives no API for relative numbers (there is some hacky gutter images extension, but it is really hacky, slow and bad looking). I've made a fork with relative numbers built-in https://github.com/alfanick/vscode https://github.com/alfanick/vscode. Not going to do pull request, at least not yet - unit testing and i18n required.
BTW I do not use TypeScript (or JS), but it was quite easy to write, still I was quite surprissed how messy VS Code codebase is.
- johnfn 10y agoAh, you should definitely join in on our Slack. Another guy has done some similar work in a plugin: https://github.com/extr0py/vscode-relative-line-numbers https://github.com/extr0py/vscode-relative-line-numbers
- alfanick 10y agoyeah, that's the extension that inspired me ;)
- rebornix 10y agoThe reason that plugin lags is because it was using `setInterval` initially but I changed it to selectionChange hook and now it works smoothly. Now the only problem with it is it hides breakpoints but definitely we will improve this experience later on. / I'm a Code team member*/
- ashwinne 10y agoI find relative number very useful to jump lines. Please consider showing current line number for current line. And go ahead with the pull request, many of us need this feature :)
- alfanick 10y agothat's exactly what I implemented, yup I will make a pull request soon
- deleted 10y ago[deleted]