GNOME Bugzilla – Bug 772396
Add auto detection of indent style
Last modified: 2018-01-11 10:11:45 UTC
Here's an idea for a new feature: smart indenting. Since GNOME projects use a variety of indent schemes, it would be nice if GNOME Builder could be set to automatically detect the indent style used in a file and set automatic indentation to match the style already in use. Because new commits to a file should obviously match the indent style already in use.
One way to do this can be intending the same way as the previous line (This is just one simple case that can be handled). Eg: g_print ("testing\n"); g_another_defun ();| In the above case '|' is where the cursor is. If I just press enter key, it should move cursor to next line, indent 4 spaces and put the cursor there, even if the indent level is set to 2.
I mean to say that indent to the level of the previous line, if possible. I missed to say that important part.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/147.