Skip to content

Configuration & Preferences

Grisgram edited this page Jun 25, 2026 · 1 revision

To maintain a seamless, non-intrusive workflow across all your projects, GDGist hooks directly into the engine's native configuration architecture. Settings are not stored in project-local .godot files, they are integrated into the global Editor Settings.

This means you only need to configure your GDGist preferences once per Godot installation, and those parameters will persist across every project you open.

Accessing GDGist Settings

To modify the plugin's configuration:

  1. Navigate to Editor > Editor Settings... in the top menu bar.
  2. Critical Engine Restriction: Godot hides custom plugin settings by default. You MUST toggle the Advanced Settings switch in the top-right corner of the Editor Settings window to reveal the complete tree.
  3. Scroll down the left-hand panel to the coldrock/GDGist category.

Configuration Categories

Author Identity (gdgist/author/)

When defining architectural patterns, attribution is an important piece of information, especially when sharing gists publicly (e.g., via GitHub Gists or team repositories). These settings automatically inject your metadata into the header of newly created snippets.

  • name: Your name or standard developer handle.
  • email: Contact email for public inquiries.
  • www: Your portfolio or studio website URL.
  • copyright: Your standard copyright string (e.g., (c)2026 coldrock.games).

Default Licensing (gdgist/license/)

Ensures that any snippet you extract is automatically bound to a specific usage license.

  • default_license: The standard license identifier (e.g., MIT, CC0, GPLv3).
  • license_url: A direct link to the license definition. It is set by default to the CC0 license, because most snippets are free to use.

Pro Edition Settings (gdgist/pro/) (Pro Edition Only)

  • global_gists_path: Defines the absolute OS path where your cross-project Global Gists are stored. By default, this points to your standard user:// data directory, but it can be rerouted to a synchronized cloud folder (like Dropbox or Google Drive) for multi-machine parity.

The .gdgist File Structure

To understand exactly what these settings do under the hood, it is helpful to look at the raw data structure of a saved snippet.

Snippets are stored as plain-text .gdgist files. The configuration parameters you set in the Editor Settings are used to automatically populate the @ metadata tags at the top of the file upon creation. This keeps your shared boilerplates professional and fully attributed.

@name:        func_add_sensor_target
@extends_class: Node2D
@author:      <your author name>
@copyright:   <your copyright notice>
@email:       <your email>
@www:         <your web url>
@license:     CC0
@license_url: https://creativecommons.org/publicdomain/zero/1.0/
+-+ CODE +-+
## [color=orange]Operator Interface[/color][br]
## Add a sensor target, save its state, and apply material directly.
func add_sensor_target(sensor:Node, node:Node) -> void:
	super.add_sensor_target(sensor, node)
	var se:Sensor = sensor as Sensor

Clone this wiki locally