Menu

#316 Make auto-tab feature more context sensitive

open
nobody
None
5
2012-09-26
2004-10-07
No

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.

Discussion

  • aditsu

    aditsu - 2004-11-18

    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

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    let's move it to feature requests

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.