microsoft / VS-PPT

Productivity Power Tools - a set of Visual Studio extensions improving developer productivity.
http://aka.ms/extendvs
Other
887 stars 146 forks source link

Align Assignments with ':' character (Python dictionaries) #154

Open michaelosthege opened 7 years ago

michaelosthege commented 7 years ago

Align assignments is awesome, but when doing Python, one often writes assignments as dictionaries that do not use the '=' character:

default_args = {
    'owner': 'owner-value',
    'depends_on_past': False,
    'start_date': datetime.datetime(2017, 7, 30),
    'retries': 0,
    'max_active_runs': 1
}

Detecting the ':' character and aligning assignments on that would be really useful.

dsschnau commented 5 years ago

This would also be useful in js/typescript. For that matter - it would be cool if the plugin could align based on an arbitrary string like =, :, or =>.