Benutzer-Werkzeuge

Webseiten-Werkzeuge


editorconfig

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
editorconfig [2022-08-26 17:45:56] – angelegt davideditorconfig [2024-08-12 15:43:00] (aktuell) david
Zeile 3: Zeile 3:
 Die EditorConfig (''.editorconfig'') ist eine Konfigurationsdatei, welche für einen einheitlichen und konsistenten Code Style sorgen soll. Die EditorConfig (''.editorconfig'') ist eine Konfigurationsdatei, welche für einen einheitlichen und konsistenten Code Style sorgen soll.
  
 +[[https://editorconfig.org]]
  
-===== Beispiel ===== 
  
-<code ini .editorconfig> +===== Beispiele =====
-# https://editorconfig.org/+
  
-# Inspired by https://github.com/RehanSaeed/EditorConfig.git+==== Basis ====
  
-# Remove the line below if you want to inherit .editorconfig settings from higher directories+<code ini .editorconfig>
 root = true root = true
  
-#### Core EditorConfig Options ####+[*] 
 +charset = utf-8 
 +end_of_line = lf 
 +indent_size = 4 
 +indent_style = space 
 +insert_final_newline = true 
 +trim_trailing_whitespace = true 
 +</code> 
 + 
 + 
 +==== Ausführlich ==== 
 + 
 +<code ini .editorconfig> 
 +root = true
  
 [*] [*]
Zeile 22: Zeile 34:
 indent_style = space indent_style = space
 insert_final_newline = true insert_final_newline = true
-tab_width = 4 
 trim_trailing_whitespace = true trim_trailing_whitespace = true
  
 [*.{md,mdx}] [*.{md,mdx}]
 trim_trailing_whitespace = false trim_trailing_whitespace = false
 +
 +[*.{toml,ini}]
 +indent_size = 2
  
 [*.{json,webmanifest}] [*.{json,webmanifest}]
Zeile 35: Zeile 49:
 indent_style = space indent_style = space
  
-[*.{xml,svg,config,csproj,fsproj,vbproj,vcxproj,vcproj,dbproj,lsproj,wixproj,modelproj,sqlproj,wmaproj,xproj,props,filters,vcxitems,vssettings}]+[*.{xml,svg}]
 indent_size = 2 indent_size = 2
  
-[*.{html,css,scss,sass,less,pcss,js,jsx,ts,tsx,vue}]+[*.{html,css,js,jsx,ts,tsx}]
 indent_size = 4 indent_size = 4
  
-[*.sh]+[*.{sh,ps1}]
 end_of_line = lf end_of_line = lf
  
-[*.{ps1,cmd,bat}]+[*.{cmd,bat}]
 end_of_line = crlf end_of_line = crlf
  
 [Makefile] [Makefile]
 indent_style = tab indent_style = tab
- 
-[*.sln] 
-end_of_line = crlf 
-indent_style = tab 
- 
-[*.{csproj,fsproj,vbproj}] 
-end_of_line = crlf 
- 
-[{app,web}.config] 
-end_of_line = crlf 
-indent_style = tab 
-tab_width = 2 
- 
-[*.{master,asax,ascx,ashx,asmx,aspx}] 
-end_of_line = crlf 
- 
 </code> </code>
  
  
/home/http/wiki/data/attic/editorconfig.1661535956.txt · Zuletzt geändert: von david