我想在 VSCode 中组织内联注释,以便它们都位于同一列中。由此:
int a = 0; //comment 1
int b = 0; //comment 2
int c = a*b; //comment 3
Run Code Online (Sandbox Code Playgroud)
对此:
int a = 0; //comment 1
int b = 0; //comment 2
int c = a*b; //comment 3
Run Code Online (Sandbox Code Playgroud)
尝试使用 Better Align Extension 但这并没有真正起作用,因为它只能正确格式化具有等号的行,例如 something = something。有没有其他方法可以做到这一点?提前致谢。