Menu

#510 Auto-Indent Issues

open
nobody
None
5
2012-09-26
2005-02-22
Brian
No

When ever I press enter after adding a new brace this
is what happens. It has been going on for a while.
OS: Windows ME
It happens to me on XP too.

Discussion

  • Brian

    Brian - 2005-02-22

    Shows what happens with the cursor

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    this is dev-c++ version 4.9.9.2?

     
  • Brian

    Brian - 2005-02-23

    Logged In: YES
    user_id=1046983

    Yes just downloaded your release from castlesofpoland it
    happened in 4.9.9.1 too. I would just say it was my crappy
    Me but when I was programming a bit on my girlfriends comp
    which has Xp, it did the same exact thing

     
  • Brian

    Brian - 2005-02-26

    Logged In: YES
    user_id=1046983

    It only happens when smart tabs are on.

     
  • Nobody/Anonymous

    Logged In: NO

    I have the same issue I think. It happens as I go to close
    the brace. It auto-indents it an extra indent.

     
  • Nobody/Anonymous

    Logged In: NO

    Its just a logic problem; if you look at the tooltip text of the
    autoindent option, it says something about it moving the
    carret to the first non-whitespace character of the preceding
    line. The problem is that it doesn't really find the first non-
    whitespace, but the second. Eg. if you put a space between
    the "if" and the "(" open bracket in your example, the caret
    would be placed there.
    I liked the indent system in visual c++, they should change
    devc++ to something like that.

     
  • Frans Bouwmans

    Frans Bouwmans - 2005-04-05

    Logged In: YES
    user_id=1198598

    The problem seems to be in the combination of auto indent
    and smart tabs. The curly brace triggers an auto indent
    which result in an tab. This tab is handled as a smart tab
    and therefore it will indent untill the first space
    character in a previous line. Exactly what the picture shows.
    I'm not sure how it should work but this is how it is
    currently implemented.

     
  • zanypoetboy45

    zanypoetboy45 - 2005-05-23

    Logged In: YES
    user_id=1283569

    This also happens to me on WinXP, incidently it did not
    happen while I was using DevC++ 4.9.9.0. There is a way to
    get auto indentation and tabs to work, however. Simply
    check "Auto Indent" and "Use Tab Characters", but do not
    check "Smart Tabs" under the Edit Options menu. I don't
    believe there are any drawbacks or missing functionality, as
    the tab still act "smart".

     

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.