Is there anyway to achieve this code format alignment? Typescript

From this:

```

export type HistoryType = {
  id: number; // eg: 1
  query: string; // eg: Osaka, JP
  time: string; // eg: 03:14:50 PM
};

```

To this:

```

export type HistoryType = {
  id        : number;   // eg: 1
  query  : string;      // eg: Osaka, JP
  time    : string;      // eg: 03:14:50 PM
};

```

Basically to align vertically the type declaration and start of the comment in a single line.

0
1 comment

Hello,

Unfortunately, it is not possible at the moment. But there is and issue on our tracker: https://youtrack.jetbrains.com/issue/WEB-43078/TypeScript-code-style-add-wrapping-aligning-options-for-object-type-literal.

0

Please sign in to leave a comment.