2024-05-05 18:30:39 +00:00
|
|
|
---
|
|
|
|
title: .editorconfig
|
|
|
|
description: Formatting standards using .editorconfig
|
|
|
|
published: true
|
2024-05-05 18:36:10 +00:00
|
|
|
date: 2024-05-05T18:36:09.521Z
|
2024-05-05 18:30:39 +00:00
|
|
|
tags:
|
|
|
|
editor: markdown
|
|
|
|
dateCreated: 2024-05-05T18:30:37.455Z
|
|
|
|
---
|
|
|
|
|
|
|
|
# Standardization
|
2024-05-05 18:36:10 +00:00
|
|
|
These .editorconfig files are broken down into language specific sections.
|
|
|
|
|
|
|
|
Always include this global portion:
|
2024-05-05 18:30:39 +00:00
|
|
|
```editorconfig
|
|
|
|
root = true
|
|
|
|
|
|
|
|
[*]
|
2024-05-05 18:36:10 +00:00
|
|
|
charset = utf-8
|
2024-05-05 18:30:39 +00:00
|
|
|
trim_trailing_whitespace = true
|
|
|
|
end_of_line = lf
|
2024-05-05 18:36:10 +00:00
|
|
|
```
|
|
|
|
---
|
|
|
|
Following here is the per language additions:
|
|
|
|
|
|
|
|
## Nix
|
|
|
|
```editorconfig
|
|
|
|
[*.nix]
|
|
|
|
indent_style = space
|
|
|
|
indext_size = 2
|
|
|
|
insert_final_newline = false
|
2024-05-05 18:30:39 +00:00
|
|
|
```
|