https://bugs.kde.org/show_bug.cgi?id=406282

            Bug ID: 406282
           Summary: C style indentation mode use 1 space when it should
                    use one TAB
           Product: kdevelop
           Version: 5.3.2
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: sgd.or...@gmail.com
  Target Milestone: ---

SUMMARY
When writing code in C with indentation mode set to "C Style" the indentation
in a case I write {} brackets on new line reduces the intendation by a level
but it uses spaces instead of tabs.

STEPS TO REPRODUCE
1. Open a file and set Indentation mode to "C Style"
2. Write some functions or block which will indent the code and use tabs.
>>/* some block */
>>{
>>
>>}
3. Write our code, use tabs
>>/* some block */
>>{
>>      while (1)
>>              // The auto indent sends us here (2 tabs)
>>}
4. Write '{' to begin the block
>>/* some block */
>>{
>>      while (1)
>>              { // example what I type, before the automatic things do their 
>> job
>>}

OBSERVED RESULT
The auto indent does its job and reduces the indentation be 1 (to 1) but is
using spaces instead of tabs
>>/* some block */
>>{
>>      while (1)
>> {} // example of what automatic things did with my code (1 space)
>>}

EXPECTED RESULT
I expect the auto indentation to use tabs when I use tabs in current file
>>/* some block */
>>{
>>      while (1)
>>      {} // example of what I desire (1 tab)
>>}

SOFTWARE/OS VERSIONS
Operating System: Artix 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 4.19.30-1-lts
OS Type: 64-bit
Processors: 2 × Intel® Pentium® CPU B980 @ 2.40GHz
Memory: 7,6 GiB of RAM

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to