Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A modern and improved version of Lonefy’s JS-CSS-HTML Formatter for Visual Studio Code. Updated for 2025, improved performance and configuration options.

License

Notifications You must be signed in to change notification settings

ubodigat/Code-Formatter-for-HTML-CSS-and-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 Code Formatter – by U:Bodigat

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.


✨ Features

✅ 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


⚙️ Verwendung

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


🛠️ Beispiel-Konfiguration (formatter.json)

{
  "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
  }
}

License and Credits

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.

About

A modern and improved version of Lonefy’s JS-CSS-HTML Formatter for Visual Studio Code. Updated for 2025, improved performance and configuration options.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published