Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Perfect IndentNew to Visual Studio Code? Get it now.
Perfect Indent

Perfect Indent

Heber Almeida

|
191 installs
| (1) | Free
Fix broken indentation automatically in any language. A smarter auto-indent for VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Perfect Indent

A smarter indentation fixer for Visual Studio Code.

Perfect Indent analyzes your code structure and automatically corrects broken indentation for ANY language.

Perfect Indent

Features

  • Fix indentation with one command

  • Detects tab/spaces automatically

  • Works with 30+ languages including HTML, JS, TS, Vue, React, PHP, Python, JSON, CSS, YAML, XML, and more

  • Smart block-based indentation

  • Keyboard shortcut included

  • Ultra lightweight (no dependencies)

Usage

Press:

  • Ctrl + Shift + I (Windows/Linux)

  • Cmd + Shift + I (macOS)

or run:

Perfect Indent: Fix indentation

Perfect for

  • Messy pasted code

  • Minified → reformatted

  • HTML/Blade/Vue/JSX components

  • Python blocks

  • Legacy files

Supported Languages

Perfect Indent works with any language that uses block-based indentation:

Web Technologies

  • HTML / XHTML / XML
  • Vue (.vue files with template, script, style)
  • Angular (.component.ts, .component.html, .module.ts, .service.ts, .routing.ts)
  • React / JSX
  • JavaScript (.js, .mjs, .cjs)
  • TypeScript (.ts, .tsx)
  • CSS / SCSS / SASS / LESS
  • JSON / JSON5

Backend Languages

  • Python (.py)
  • PHP (.php, .phtml)
  • Ruby (.rb)
  • Go (.go)
  • Rust (.rs)
  • Java (.java)
  • C/C++ (.c, .cpp, .h)
  • C# (.cs)

Configuration & Data

  • YAML (.yaml, .yml)
  • TOML (.toml)
  • INI (.ini)
  • Markdown (.md, .markdown)

Template Engines

  • Blade (Laravel)
  • Twig (Symfony)
  • Jinja2 (Python)
  • EJS / Handlebars

Other

  • Shell Scripts (.sh, .bash, .zsh)
  • SQL (.sql)
  • Lua (.lua)
  • Perl (.pl)
  • Swift (.swift)
  • Kotlin (.kt)
  • And many more!

Roadmap

v1.0

✔ Fix básico por blocos

✔ Detectar indent

✔ Comando atalho

v1.1

⬜ Ativar "Fix on Save"

⬜ Configurações no VS Code

⬜ Suporte especial para Python

v1.2

⬜ Indentação inteligente por AST (análise da estrutura)

v2.0

⬜ "AI Indent Helper" (opcional, offline ou com IA local)

⬜ Corrigir indentação por seleção


Made with ❤️ for developers.

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