WarWithinMe / better-align

A vscode extension to provide better vertical alignment
Other
75 stars 39 forks source link

Aligning dereferenced pointer in C #59

Open ahmedhassan-eng opened 4 years ago

ahmedhassan-eng commented 4 years ago

While working on a C file,

When trying to align the lines below:

      pRes[1] = 0x11u; /* Set response */
      pRes[2] = 0x22u;
      *pLength = 3u; /* Set response length */

they turn into:

      pRes[1]       = 0x11u;  /* Set response */
      pRes[2]       = 0x22u;
           *pLength = 3u;     /* Set response length */

The last line is indented for no obvious reason.