Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Code alignmentNew to Visual Studio Code? Get it now.
Code alignment

Code alignment

Chris McGrath

|
65,368 installs
| (5) | Free
Code Alignment for Visual Studio Code. Based on the Extension for Visual Studio.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Alignment for Visual Studio Code

Port of the C# Code base to TypeScript

Code alignment is the practice of formatting your code vertically to improve readability.

Based on principles borrowed from mathematics and other disciplines, code alignment gives extra meaning to your code by lining up similar data in columns. This is something we do naturally when working with tables and spreadsheets, but unfortunately it doesn't get applied to code often enough.

The usual excuses are, "It's too hard. It takes too long. They don't pay me enough." With this extension, these excuses are no longer valid.

##Current State Many of Code alignment's best features are currently missing. The plan is to release early and release often, and to eventually reach parity.

Main code alignment repository: https://github.com/cpmcgrath/codealignment

Build Server: https://ci.appveyor.com/project/cpmcgrath/codealignment-vscode

How to use

To use:

  • Open a file with some lines
  • Select the lines which you want to align (Or use Auto scope selection)
  • Press F1 and type 'Code Alignment' to bring up options.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft