Make auto-tab feature more context sensitive
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
Auto-tabbing does not seem to be sensitive to the
surrounding code. For example, if you enter:
cout << "foo"
on a line and hit enter, it seems intuitive to tab the
cursor once ahead of the cout, since the previous statement
did not include a semicolon or opening curly brace, and
wasn't
a preprocessor directive.
It seems to work fine for code like:
while(1) { <enter>
<tab is="" created="" here="">
but the closing curly brace is not unindented when it
is entered, which would be the expected
behavior, at least for former users of MS VS.
Logged In: YES
user_id=682737
for the first part (multi-line statements) it would be nice
to have automatic indentation, but it should be configured
separately from the normal block indentation
(e.g. blocks should be indented by 1 tab/4 spaces and
multi-line statements by 1 or 2 spaces, or after the first
identifier on the first line of the statement)
the second part (unindenting closing braces) works fine for
me (at least when I'm not using tabs)
Adrian
Logged In: YES
user_id=609236
let's move it to feature requests