After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772396 - Add auto detection of indent style
Add auto detection of indent style
Status: RESOLVED OBSOLETE
Product: gnome-builder
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-04 10:12 UTC by Jeremy Bicha
Modified: 2018-01-11 10:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Bicha 2016-10-04 10:12: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.
Comment 1 Mohammed Sadiq 2016-10-04 12:29:24 UTC
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.
Comment 2 Mohammed Sadiq 2016-10-04 12:30:54 UTC
I mean to say that indent to the level of the previous line, if possible. I missed to say that important part.
Comment 3 GNOME Infrastructure Team 2018-01-11 10:11:45 UTC
-- 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.