Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>virtual-better-alignNew to Visual Studio Code? Get it now.
virtual-better-align

virtual-better-align

hborchardt

|
166 installs
| (1) | Free
Like better-align extension, but instead of inserting spaces it visually shifts equal signs and colons.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

virtual-better-align

Align equal signs and colons on adjacent lines, but not by inserting spaces but by just visually shifting text around.

Tutorial

Why?

Aligning assignments vertically makes it easier to recognize the structure of the code. But actually inserting space characters has disadvantates, because it can mean changes to unrelated lines in your git diff just to keep the alignment correct. And incorrect alignment is worse than no alignment.

The solution is to introduce the necessary spaces only virtually, in the editor, but not in the file on disk.

Commands

  • "Virtual Better Align: Toggle active" activates or deactivates the extension functionality

Contributing

Feel free to create issues and pull requests.

"Buy Me A Coffee"

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft