Keine Werbung mögen? Gehen Werbefrei Heute

.editorconfig Generator

EntwicklerText
ANZEIGE Entfernen?

Global Defaults ([*])

Number of columns per indent level. Leave empty to unset.
Visual width of a tab. Defaults to indent_size if left empty.
Enter 0 or leave empty to omit. Common values: 80, 100, 120.

Language Overrides
Toggle common per-language sections. Each adds a matching [pattern] block after the global defaults.
ANZEIGE Entfernen?

Führung

.editorconfig Generator

.editorconfig Generator

Build a valid, spec-compliant .editorconfig file for your project without memorising property names or cross-checking values. Pick a preset for your language, tweak the global defaults, toggle a few per-language overrides, and copy the result straight into the root of your repository.

EditorConfig files keep indent styles, line endings, character sets, and trailing-whitespace rules consistent across every editor and IDE your team uses. A misspelled property name or a value outside the allowed set is silently ignored, so a generator that only emits supported keys is the safest way to avoid quiet drift between developers.

Nutzung

  1. Wählen Sie einen Schnelle Voreinstellung that matches your primary language (JavaScript/TypeScript, Python, Go, PHP, Ruby, Web, or Mixed). The preset pre-fills every global default below.
  2. Adjust the Global Defaults — indent style, indent size, tab width, end-of-line, charset, max line length, trim trailing whitespace, and insert final newline.
  3. Tick any Language Overrides you need. Each toggle appends a properly-scoped section such as [*.py] oder [{Makefile,makefile,GNUmakefile}] with sensible per-language rules.
  4. Copy the generated file or download it as .editorconfig and drop it into the root of your repository. EditorConfig plugins in VS Code, JetBrains IDEs, Vim, Sublime, and most other editors pick it up automatically.

Funktionen

  • Language presets – JavaScript/TypeScript, Python, Go, PHP, Ruby, Web (HTML/CSS/JS), and a Mixed profile that covers typical polyglot repositories.
  • Every standard global propertyindent_style, indent_size, tab_width, end_of_line, charset, trim_trailing_whitespace, insert_final_newlinefest, und die optionale max_line_length.
  • Scoped overrides – one-click toggles for Markdown, YAML, JSON, JS/TS, CSS, HTML/XML, Python, Go, PHP, Ruby, Makefile (tab indent enforced), and .bat/.cmd (CRLF enforced).
  • Live-Vorschau – the file updates on every change, with copy-to-clipboard and one-click download buttons.
  • Nur clientseitig – the form state never leaves your browser; nothing is uploaded, logged, or stored server-side.
  • Always valid – each emitted property is restricted to the values accepted by the EditorConfig specification, so your file will not be quietly ignored.

Why EditorConfig?

Without a shared configuration, a single repository can end up with tabs in one file, four spaces in another, and CRLF line endings sneaking in from a Windows contributor. EditorConfig solves that by letting one file at the project root express the formatting contract every editor must follow, before any linter or formatter even runs.

ANZEIGE Entfernen?

Häufig gestellte Fragen

  1. Where should I place the .editorconfig file?

    Put it in the root of your repository. EditorConfig-aware editors walk upward from the file being edited and merge settings from every .editorconfig they encounter along the way, so a root-level file is sufficient for most projects. Nested .editorconfig files can override settings in specific sub-directories when you need per-folder rules.

  2. What does root = true do?

    The root = true directive at the top of a file tells EditorConfig plugins to stop searching for additional .editorconfig files in parent directories. Without it, a plugin may continue looking upward and merge in settings from a home-directory or parent-project file you did not intend to inherit.

  3. Is indent_size the same thing as tab_width?

    They are related but distinct. indent_size is how many columns an indent level represents, measured in the chosen indent_style. tab_width is the visual width of a literal tab character. When they differ, EditorConfig supports styles like indent_style = space with indent_size = 4 while still displaying tab characters as 8 columns via tab_width.

  4. Why does Makefile have to use tabs?

    GNU make requires recipe lines to begin with a literal tab character. Converting those tabs to spaces causes make to fail with a missing separator error. That is why the Makefile override sets indent_style = tab and omits indent_size — nothing else is a valid build file.

  5. What happens if my editor does not support EditorConfig natively?

    Most modern editors and IDEs have first-party support (JetBrains, Visual Studio, GitHub web) or a first-party plugin (VS Code, Sublime Text, Vim, Emacs). Editors without a plugin simply ignore the file, and a misspelled or unsupported property is silently skipped — malformed rules never cause a build or editor error.

Möchten Sie werbefrei genießen? Werde noch heute werbefrei

Erweiterungen installieren

IO-Tools zu Ihrem Lieblingsbrowser hinzufügen für sofortigen Zugriff und schnellere Suche

Zu Chrome-Erweiterung Zu Kantenerweiterung Zu Firefox-Erweiterung Zu Opera-Erweiterung

Die Anzeigetafel ist eingetroffen!

Anzeigetafel ist eine unterhaltsame Möglichkeit, Ihre Spiele zu verfolgen. Alle Daten werden in Ihrem Browser gespeichert. Weitere Funktionen folgen in Kürze!

ANZEIGE Entfernen?
ANZEIGE Entfernen?
ANZEIGE Entfernen?

Nachrichtenecke mit technischen Highlights

Beteiligen Sie sich

Helfen Sie uns, weiterhin wertvolle kostenlose Tools bereitzustellen

Kauf mir einen Kaffee
ANZEIGE Entfernen?