Is it possible to set Align key-value pair in Pycharm Code Style? I'm looking for something that will reformat:
nickname = models.CharField(unique=True, max_length=24)
biography = models.TextField(default=BIO_DEFAULT_STRING)
avatar = models.ImageField(upload_to='members/avatars/')
to:
nickname = models.CharField(unique=True, max_length=24)
biography = models.TextField(default=BIO_DEFAULT_STRING)
avatar = models.ImageField(upload_to='members/avatars/')
I got it working in PhpStorm, can't find it in PyCharm.
You need a function from plugin String Manipulation:
Menu→Code→Align to ColumnsConfigure hot-keys
Settings→KeymapAdd Keyboard Shortcut(Enter)ApplyandOk