Problem with auto indent driving me crazy

  • Hello there!

    I am a student currently practicing with C and C++ and so far the QT creator is my favourite tool to qrite my code.
    I have a weird problem though. It used to auto- indent the source code like that:

    @int main (void) {
    int a=0, b=0;
    if (a=3){@

    would become
    @int main (void){
    int a = 0, b = 0;
    if (a = 3)@

    which is way better than the first one! Also when I typed something like ('text') a green cursor would appear outside of the ) and if i hit enter while writing it'd automatically go the ).

    For some reason it does not auto-indent my code like that anymore nor does it move my cursor automatically to the end. Did I set something wront without knowing it? I dont remember changing anything at all! Please help me, it' s driving me crazy!

  • or maybe is there a way to reset ALL the settings back to default in case I messed something up? thank you very much again :)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.