[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 310073] New: Tab and backspace don't indent to proper position
From:       Romek <roman.konieczny () gmail ! com>
Date:       2012-11-14 8:08:03
Message-ID: bug-310073-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

            Bug ID: 310073
          Severity: wishlist
           Version: git master
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: Tab and backspace don't indent to proper position
    Classification: Unclassified
                OS: Linux
          Reporter: roman.konieczny@gmail.com
          Hardware: Ubuntu Packages
            Status: UNCONFIRMED
         Component: all editors
           Product: kdevelop

The indentation in kdevelop doesn't work as I think it should.

For example code like this:

StartsHere variable=
             someVeryLongFunctionName(with long, listof parameters, which
simply, doesnt fit)
<press tab here>

kdevelop indents code in new line to the same position as previous line which
is on same position as "someVeryLong...". It is obviously wrong since it is not
indent of the block but of the splitted line.

It should indent new line to starts from same position as "StartsHere...".

Moreover when I press backspace then kdevelop unindents by exact spaces count
set in settings, even if the cursor position is not a multiplicity of that
indent size. So if for example I have indent setting of size 3 and then in code
I have cursor on position 5 then backspace will unindent to position 2. In my
opinion it should unindents to the next valid indent multplicity which in this
case is 3.

The example editor of imho more intuitive indentation handling is QtCreator
where I can just focus on the code logic and forget about formatting. In
Kdevelop however, I have to constantly correct the editor choices since it is
not very smart in terms of indenting.

Please fix this if you agree with me.

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic