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 738565 - Builder should ship with sane defaults for language settings
Builder should ship with sane defaults for language settings
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: preferences
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-15 08:30 UTC by Christian Hergert
Modified: 2014-10-15 21:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
settings: install some reasonable defaults for common languages (5.56 KB, patch)
2014-10-15 21:13 UTC, Christian Hergert
committed Details | Review

Description Christian Hergert 2014-10-15 08:30:47 UTC
We currently have a single schema defining the language settings for all languages. The schema is relocatable, which is good. However, the defaults in the schema are probably not ideal for all languages.

We should install some sane defaults on first run.

Python, for example should have:

  insert-spaces-instead-of-tabs : True
  tab-width                     : 4
Comment 1 Christian Hergert 2014-10-15 21:13:01 UTC
Created attachment 288617 [details] [review]
settings: install some reasonable defaults for common languages

If ~/.local/share/gnome-builder/.defaults-installed is not found, we
will set some reasonable defaults for C, Python, Ruby, JavaScript, XML,
etc.

We will likely iterate on these defaults a bit. Especially with how they
will tie into auto-indentation in the future.
Comment 2 Christian Hergert 2014-10-15 21:14:19 UTC
Attachment 288617 [details] pushed as 2df4056 - settings: install some reasonable defaults for common languages