| Summary: | Cannot properly configure tabs and spaces for project indentation settings | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Aaron Williams <aaronw> |
| Component: | All editors | Assignee: | kdevelop-bugs-null |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | igorkuo |
| Priority: | NOR | ||
| Version First Reported In: | 5.6.2 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Aaron Williams
2021-11-20 08:31:24 UTC
> It basically totally screwed up my code in such a way that it will be very painful for me to recover since I have made a lot of changes since my last git commit. Don't experiment without a backup. You could have created a "WIP" commit or run `git diff > wip.patch` before reformatting the code with the tool you never used before. > Furthermore, there is no help. I have no idea what "Force tabs" does. http://astyle.sourceforge.net/astyle.html#_indent=force-tab > The project formatter should be consistent with the global format settings but this is not the case. I see no reason why the confusing project source format settings differ from the global editor indentation settings. The global formatting settings are from KTextEditor, and I suspect overriding them per-session or per-project is not supported by KTextEditor framework. > I also see no way to do tabs and spaces like is possible with the global editor indentation settings. You could try Custom Script Formatter styles. Surely GNU Indent, Uncrustify or Clang-Format implement your preferred indentation style. |