Auto indentation in Gedit

8,413

Solution 1

The auto indentation might not actually be what you think it is. It isn't "smart indentation;" it simply maintains the indentation on the next line. For example, if you were to have a line indented with four spaces, with auto indentation the next line will also have four spaces. Without auto indentation, the next line would return to the beginning.

Solution 2

You will need to manually indent the first line in a block of code that should be indented. Subsequent lines will automatically be indented by the same number of spaces or tabs as this first line.

Of course if you are already doing this, then you have uncovered a bug which should be reported!

Share:
8,413

Related videos on Youtube

segfault
Author by

segfault

Updated on September 17, 2022

Comments

  • segfault
    segfault over 1 year

    I'm using Gedit to program C and CPP, and I've enabled auto indentation in Edit->Pref.

    However, it still doesn't work. Is there anything I can do?