-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.editorconfig
More file actions
116 lines (96 loc) · 3.2 KB
/
Copy path.editorconfig
File metadata and controls
116 lines (96 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# EditorConfig - Configuración de estilo de código entre editores
# https://editorconfig.org
# Este es el archivo raíz de configuración
root = true
# =============================================================================
# CONFIGURACIÓN GLOBAL (todos los archivos)
# =============================================================================
[*]
# Codificación UTF-8 (necesario para LaTeX moderno)
charset = utf-8
# Fin de línea Unix (LF) - mejor para Git y compatibilidad
end_of_line = lf
# Añadir nueva línea al final del archivo
insert_final_newline = true
# Eliminar espacios en blanco al final de las líneas
trim_trailing_whitespace = true
# Indentación por defecto: espacios
indent_style = space
indent_size = 4
# =============================================================================
# ARCHIVOS LATEX (.tex, .sty, .cls)
# =============================================================================
[*.{tex,sty,cls}]
indent_style = space
indent_size = 2
# Máximo ancho de línea recomendado (no forzado)
max_line_length = 100
# =============================================================================
# ARCHIVOS BIBTEX
# =============================================================================
[*.bib]
indent_style = space
indent_size = 2
# =============================================================================
# ARCHIVOS DE CONFIGURACIÓN
# =============================================================================
# Makefile requiere tabs (no espacios)
[Makefile]
indent_style = tab
indent_size = 4
# YAML (GitHub Actions, etc.)
[*.{yml,yaml}]
indent_style = space
indent_size = 2
# JSON
[*.json]
indent_style = space
indent_size = 2
# JSONC (JSON con comentarios, como settings.json de VS Code)
[*.jsonc]
indent_style = space
indent_size = 4
# =============================================================================
# SCRIPTS
# =============================================================================
# Perl (latexmkrc)
[.latexmkrc]
indent_style = space
indent_size = 4
[latexmkrc]
indent_style = space
indent_size = 4
# Shell scripts
[*.sh]
indent_style = space
indent_size = 4
end_of_line = lf
# =============================================================================
# MARKDOWN
# =============================================================================
[*.md]
indent_style = space
indent_size = 2
# No eliminar espacios finales en Markdown (pueden ser saltos de línea)
trim_trailing_whitespace = false
max_line_length = off
# =============================================================================
# ARCHIVOS DE TEXTO PLANO
# =============================================================================
[*.txt]
indent_style = space
indent_size = 4
# Archivos de licencia
[LICENSE]
insert_final_newline = false
# =============================================================================
# ARCHIVOS GENERADOS (no modificar)
# =============================================================================
# No aplicar reglas a archivos auxiliares de LaTeX
[*.{aux,log,toc,lof,lot,bbl,bcf,blg,out,fls,fdb_latexmk,synctex.gz}]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset