Ein moderner, sicherer und blitzschneller Code-Formatter für HTML, CSS, JS, JSON & SCSS.
Basierend auf js-beautify – vollständig überarbeitet mit neuem Sicherheits-Layer und sauberem TypeScript-Code.
✅ Formatierung über Tastenkürzel
✅ Auto-Format beim Speichern
✅ Eigene lokale formatter.json pro Projekt
✅ Unterstützung für HTML, CSS, JS, JSON & SCSS
✅ Sichere JSON5-Konfiguration (keine Codeausführung)
✅ Erweiterte js-beautify Defaults für moderne JS-Syntax
1️⃣ Manuell formatieren:
Alt + Shift + F oder F1 → „Beautify Document“
2️⃣ Automatisch beim Speichern:
Im Config-File onSave: true aktivieren
3️⃣ Eigene Konfiguration:
F1 → „Create Local Config“
→ Datei .vscode/formatter.json wird erstellt
{
"onSave": true,
"html": {
"indent_size": 2,
"max_preserve_newlines": 2
},
"css": {
"indent_size": 2,
"newline_between_rules": true
},
"javascript": {
"indent_size": 2,
"preserve_newlines": true
}
}This project is based on the original JS-CSS-HTML Formatter by Lonefy, licensed under the MIT License.
Modified and updated for 2025 by U:Bodigat.