# Gimp.ConfigWriter.prototype.comment_mode

    function comment_mode(enable: Boolean): void {
        // Gjs wrapper for gimp_config_writer_comment_mode()
    }

This function toggles whether the writer should create commented or uncommented output. This feature is used to generate the system-wide installed gimprc that documents the default settings.

Since comments have to start at the beginning of a line, this function will insert a newline if necessary.

Since 2.4

enable

  true to enable comment mode, false to disable it