Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.33 KB

File metadata and controls

47 lines (28 loc) · 1.33 KB

supcode Visuals for Visual Studio Code

A VSCode extension providing supcode’s text rendering features.

  • Display all identifiers as kebab-case (while leaving source code intact)
  • DualShift

Features

kebab-casify

Imho kebab-case is the most readable and efficient casing convention of them all. Why suffer reading longStringsOf UltraCondensedText or identifiers_with no_separation.

DualShift

In Python the convention is to not include spaces around = in keyword arguments to functions:

def func(arg, kwarg=None, jwarg=False):
    pass

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!

def func(arg, kwarg: str = None, jwarg: bool = False):
    pass

That inconsistency kills me. It’s even worse if you only annotate some of the parameters; then you get a mix...

def func(arg, kwarg: str = None, jwarg=False):
    pass

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 visual separation, while maintaining the monospaced property.


Why?

I made this extension for myself, so ofc I’m not expecting you to agree with my personal preferences!