Skip to content

hborchardt/virtual-better-align

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published