chouzz / vscode-better-align

Better vertical alignment with/without selection in any language.
https://marketplace.visualstudio.com/items?itemName=Chouzz.vscode-better-align&ssr=false#overview
Apache License 2.0
39 stars 4 forks source link

alignment of multiple attributes in one line #122

Open madmikede opened 1 month ago

madmikede commented 1 month ago

Hi,

I have the following code:

property name="projectId" type="string" dbtype="varchar" maxlength="36";
property name="eventId" type="string" dbtype="varchar" maxlength="36";
property name="source" type="string" dbtype="varchar" maxlength="50";
property name="type" type="string" dbtype="varchar" maxlength="100";
property name="payload" type="string" dbtype="LONGTEXT";

When I align the code I get:

property name = "projectId" type = "string" dbtype = "varchar" maxlength = "36";
property name = "eventId" type   = "string" dbtype = "varchar" maxlength = "36";
property name = "source" type    = "string" dbtype = "varchar" maxlength = "50";
property name = "type" type      = "string" dbtype = "varchar" maxlength = "100";
property name = "payload" type   = "string" dbtype = "LONGTEXT";

Can I get it aligned like this?:

property name = "projectId" type = "string" dbtype = "varchar" maxlength = "36";
property name = "eventId"   type = "string" dbtype = "varchar" maxlength = "36";
property name = "source"    type = "string" dbtype = "varchar" maxlength = "50";
property name = "type"      type = "string" dbtype = "varchar" maxlength = "100";
property name = "payload"   type = "string" dbtype = "LONGTEXT";

I tried several settings, but I'm not sure if this is even possible.