A VS Code extension that aligns your code into clean vertical columns — like gofmt does for Go, but for every language.
# before
from celery import Celery
from flask import Flask, request, jsonify
from sqlalchemy import Column, Integer, String
from marshmallow import Schema, fields, validate
# after
from celery import Celery
from flask import Flask, request, jsonify
from sqlalchemy import Column, Integer, String
from marshmallow import Schema, fields, validate// before
struct Config {
name: String,
age: u32,
is_active: bool,
email_address: String,
max_retry_attempts: u32,
}
// after
struct Config {
name: String,
age: u32,
is_active: bool,
email_address: String,
max_retry_attempts: u32,
}- Node.js (v18 or later) and npm
- VS Code (v1.116 or later)
- The
columnarbinary on your PATH (see Requirements)
git clone https://github.com/mudittt/vscode-columnar.git
cd vscode-columnarnpm installnpm install -g @vscode/vscenpm run package
vsce packageOption A — Command line (recommended)
code --install-extension vscode-columnar-0.0.1.vsixOption B — VS Code UI
- Open VS Code.
- Open the Extensions panel (
Cmd+Shift+Xon macOS /Ctrl+Shift+Xon Windows/Linux). - Click the
···menu (top-right of the panel) → Install from VSIX… - Select the
.vsixfile from the repo folder.
Reload VS Code (Cmd+Shift+P → Reload Window), then open any supported file and run Format Document (Shift+Option+F on macOS / Shift+Alt+F on Windows/Linux).
Option A — Command line
code --uninstall-extension mudittyagi2002.vscode-columnarOption B — VS Code UI
- Open the Extensions panel (
Cmd+Shift+X/Ctrl+Shift+X). - Search for columnar.
- Click the gear icon → Uninstall.
- Reload VS Code when prompted.
After uninstalling, you can safely delete the cloned repo folder:
cd ..
rm -rf vscode-columnarRun Format Document (Shift+Option+F on macOS) on any supported file, or use Format Document With... → columnar to select it explicitly.
The columnar binary must be on your PATH:
brew tap mudittt/columnar
brew install columnarOr point the extension to a custom binary path via the setting below.
| Setting | Default | Description |
|---|---|---|
columnar.path |
"columnar" |
Path to the columnar binary |
Java, JavaScript, TypeScript, Python, Rust, Go, C, C++, C#, Kotlin, Swift, Ruby, PHP, Dart, Lua, Makefile, Shell, Properties, INI, TOML, YAML, Plain Text
