Closed sebthom closed 6 months ago
This PR adds support for processing and applying indentation rules defined in language configurations.
indentation rules are visible in preferences and can be disabled per language:
indentation on enter is enriched for languages specifying indentation rules. e.g. in PHP when pressing enter after { the next line is now indented:
indentation is adjusted when copy and pasting code snippets depending on insert location:
This PR adds support for processing and applying indentation rules defined in language configurations.
indentation rules are visible in preferences and can be disabled per language:![](https://github.com/eclipse/tm4e/assets/426959/0338771d-eff7-4098-85dc-31065288869e)
indentation on enter is enriched for languages specifying indentation rules. e.g. in PHP when pressing enter after { the next line is now indented:![](https://github.com/eclipse/tm4e/assets/426959/3ba92837-26c4-40da-a7ea-fb93f109781e)
indentation is adjusted when copy and pasting code snippets depending on insert location:![](https://github.com/eclipse/tm4e/assets/426959/e173b70c-c31d-45bc-a5db-7375f803632b)