Summary: | Wrong auto indentation of C code | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Martinus <mhamant> |
Component: | indentation | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | christoph, mhamant, waqar.17a |
Priority: | NOR | ||
Version First Reported In: | 22.08.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martinus
2023-02-24 12:58:11 UTC
This is somewhat complex for the built-in indenter to handle correctly. Please use our Format plugin instead which uses clang-format under the hood. Yes, I am sorry that this will not work as intended, but the indenter is just some heuristics. For complex reformatting better use the format plugin. If you like to improve the indenter, the code is js, help is welcome https://invent.kde.org/frameworks/ktexteditor/-/blob/master/src/script/data/indentation/cstyle.js?ref_type=heads |