[Eric] TAB behaviour
Leonardo Giordani
giordani.leonardo at gmail.com
Wed Nov 16 08:49:51 GMT 2011
Hi Detlev,
I find the behaviour of the TAB key somewhat inconsistent.
My configuration is
Tab width: 4
Indentation width: 4
x Show indentation guides
x Auto indentation
x Tab key indents
- Use tabs for indentations
- Convert tabs upon open
1) At the beginning of the row it indents the row. Shift-TAB unindents it.
2) In the rest of the row TAB inserts some spaces up to the next tab
point. Shift-TAB moves the cursor back by the tab-width (4 in my case)
I find number 2 inconsistent by itself: if pressing TAB inserts spaces
up to the tab point, Shift-TAB should remove them.
But since Eric is not a Word processor I think it could be much better
to stick to emacs behaviour, where TAB works as in number 1 regardless
of the position of the cursor in the row.
If you think (or know) that someone uses TAB inside a row to line up
code at tab points, could it be possible to add a configuration to
enable emacs behaviour only?
Thank you very much
Leo
------------------
Python 2.6.4
Qt 4.5.2
PyQt 4.6
sip 4.9.1-snapshot-20091015
QScintilla 2.4
eric4 4.4.17 (r4101)
More information about the Eric
mailing list