Benutzer-Werkzeuge

Webseiten-Werkzeuge


editorconfig

Dies ist eine alte Version des Dokuments!


Inhaltsverzeichnis

EditorConfig

Die EditorConfig (.editorconfig) ist eine Konfigurationsdatei, welche für einen einheitlichen und konsistenten Code Style sorgen soll.

Beispiel

.editorconfig
# https://editorconfig.org/
 
# Inspired by https://github.com/RehanSaeed/EditorConfig.git
 
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
 
#### Core EditorConfig Options ####
 
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
tab_width = 4
trim_trailing_whitespace = true
 
[*.{md,mdx}]
trim_trailing_whitespace = false
 
[*.{json,webmanifest}]
indent_size = 2
 
[*.{yaml,yml}]
indent_size = 2
indent_style = space
 
[*.{xml,svg,config,csproj,fsproj,vbproj,vcxproj,vcproj,dbproj,lsproj,wixproj,modelproj,sqlproj,wmaproj,xproj,props,filters,vcxitems,vssettings}]
indent_size = 2
 
[*.{html,css,scss,sass,less,pcss,js,jsx,ts,tsx,vue}]
indent_size = 4
 
[*.sh]
end_of_line = lf
 
[*.{ps1,cmd,bat}]
end_of_line = crlf
 
[Makefile]
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
/home/http/wiki/data/attic/editorconfig.1661535956.txt · Zuletzt geändert: von david