fix (Makefile): Add documentation for .editorconfig

This commit is contained in:
mfe-a5sys 2025-01-28 12:08:06 +01:00 committed by Maxime Helias
parent 4273ec8316
commit a8ba145c3f
2 changed files with 13 additions and 3 deletions

View File

@ -55,6 +55,3 @@ indent_style = tab
[*.*Caddyfile]
indent_style = tab
[Makefile]
indent_style = tab

View File

@ -95,3 +95,16 @@ sf: ## List all Symfony commands or pass the parameter "c=" to run a given comma
cc: c=c:c ## Clear the cache
cc: sf
```
## Adding and modifying jobs
Make sure to add this configuration to the [.editorconfig](/.editorconfig) file, so that it forces your editor to use tabs instead of spaces (Makefiles are not compatible with spaces by default).
```.editorconfig
[Makefile]
indent_style = tab
```
If you still want to use space, you can configure the prefix in the Makefile itself. See [this answer on StackExchange](https://retrocomputing.stackexchange.com/a/20303).