Perfect Indent
A smarter indentation fixer for Visual Studio Code.
Perfect Indent analyzes your code structure and automatically corrects broken indentation for ANY language.

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:
or run:
Perfect Indent: Fix indentation
Perfect for
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.
| |