-
How to change tab size to 4 spaces ? Helix seems to default to 2 spaces for indentation. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
It does follow the indentation properly once I save the file with the desired indentation. |
Beta Was this translation helpful? Give feedback.
-
Helix will detect the indentation used in the file, or otherwise defaults to the language indentation configured in Set Config with
|
Beta Was this translation helpful? Give feedback.
-
ohh ! 😮 |
Beta Was this translation helpful? Give feedback.
-
How do I change the default indentation style for empty files? [[language]]
name = "text"
indent = { tab-width = 4, unit = " " }
|
Beta Was this translation helpful? Give feedback.
-
yeah I want to set the tab width to 3 and unit to a tab, to act as my default for files that are text. trying to set the configuration for text doesn't work |
Beta Was this translation helpful? Give feedback.
-
Searching on how to set my tab width, I found this discussion and would like to add that using the line |
Beta Was this translation helpful? Give feedback.
-
@nieuemma Is this placed at the top of |
Beta Was this translation helpful? Give feedback.
Helix will detect the indentation used in the file, or otherwise defaults to the language indentation configured in
languages.toml
, with a fallback to tabs if it isn't specified. Line ending is likewise auto-detected, and will remain unchanged if no line endings were detected.Set Config with
~/.config/helix/languages.toml
, like config of javascript language