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

[enhancement] Add suppot to align class variables and functions in c++ (.h files) #58

Open AmitDavid opened 1 year ago

AmitDavid commented 1 year ago

The extension currently won't align in the following example:

class MyClass {
  public:
    int myNum; // Attribute (int variable)
    string myString; // Attribute (string variable)
};

to:

class MyClass {
  public:
    int    myNum;    // Attribute (int variable)
    string myString; // Attribute (string variable)
};

I guess this is because there is no "=" character in the lines.

chouzz commented 1 year ago

This has been fixed in v1.4.0