| Summary: | Tab always creates two spaces when editing Ruby (and I want a real Tab) | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Iñaki Baz Castillo <ibc> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | robinpeder |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Iñaki Baz Castillo
2009-04-02 01:04:34 UTC
Sorry, a bug in the report:
> In KDE 4.2.1, when editing a Ruby file with Kate, Tab just creates a
> Tab in empty lines
That's false, it also adds two spaces in that case.
Check that you have tab width (Editing->General->Tab Width) set to the same as indent width (Editing->Indentation->Indentation Width) Ok thanks, changing that it works as usual. But I wonder if it's the desirable behaviour. I see no reason for setting Tab width and also indentation width ¿? > I see no reason for setting Tab width and also indentation width?
GNU coding style is tab-width=8, indent-width=3 (and uses mixed indentation).
IOW, the amount you indent by is not always the same as what you want tab width to be. (In fact, I'd even venture that tab-width=8 and indent-width=4 (or 2) may be the most common combination.)
|