GNOME Bugzilla – Bug 610387
Tabbing auto-indent does not work
Last modified: 2020-11-07 12:12:54 UTC
Steps 1. Open a project 2. Open a C file 3. Make sure smart indentation is enabled in preferences. 4. Move the cursor to a line (anywhere in the line). 5. Press tab. Expected outcome: Autoindents the line, ala emacs. Actual outcome: Inserts a tab. I am using sourceview editor. Is it that it's not implemented for it? or autoindent in general is not working? Without this, writing code is really laborious.
Looking at source, there is no hook from tab press to autoindent. Perhaps, we can introduce a preference to enable-disable this. Enabling this means user is never able insert a literal tab in his source file (which is the trade off).
This is an additional feature, reduced severity. It's probably not difficult to implement this if someone wants it but it definitly needs an additional preference option. "Smart indentation" just means that the next line is indented correctly when you press Enter. "Edit->Autoindent" does exactly the same, you can probably set its shortcut to "Tab".
Reduced priority as well. ctrl-i does for now.
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old feature requests in Bugzilla which have not seen updates for many years. If you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/anjuta/-/issues/ Thank you for reporting this issue and we are sorry it could not be implemented.