supcode Visuals for Visual Studio CodeA VSCode extension that renders your source code more nicely, in line with supcode.
These changes are purely visual, so the underlying source code is left completely intact. All it does is make the reading experience smoother! When you interact with a visually modified line the visual effects will vanish, allowing you to still edit the raw source code as usual.[^unspace] [^unspace]: Except for Unspace, because you probably aren’t touching the legacy source code so don’t care about what the raw text is. Featureskebab-casifyImho kebab-casify displays all your
DualShiftIn Python the convention is to not include spaces around
I personally find this extremely ugly. But guess what, if you add type hints, then all of a sudden spaces are a great idea again!
That inconsistency kills me. It’s even worse if you only annotate some of the parameters; then you get a mix...
DualShift takes a compromise between the two by keeping the spaces, but making each of them exactly half as wide. This means you still get a small amount of helpful visual separation. And since 2 half-spaces make a full space, your text stays monospaced. UnspaceYou might encounter ugly code written like this when working with legacy codebases:
Unspace hides the space in your editor, so you see normie code:
It will also correctly ignore keyword constructs; these are left alone:
Extension Settings
FAQWhy?I have very particular preferences when it comes to editing code ^v^ Why?Reading unreadable code makes me uncomfortable, and it takes a lot of mental fortitude to ignore it. I made this extension for myself, so ofc I’m not expecting you to agree with my personal preferences! Isn't this cursed?Haha, just a little, at first. Then you get used to it, and it's just wonderful! Why not give it a shot and see for yourself? ;) What languages are supported?supcode Visuals aims to be language-agnostic, since identifiers and operators tend to be broadly similar across languages. It works best with languages like Python, TypeScript, Rust since they have very ‘basic’ syntax; for funkier languages like Haskell it might break down. The visuals broke after a certain point in the file!The extension uses a quick-and-dirty naive parser to track contexts in the code, so that the visuals aren’t applied in places like string literals. This context tracking isn’t perfect, so sometimes a (usually string) context will never be terminated, hence locking all the visuals. I’m always working to make the context tracking more reliable. I know currently |