ConfigStore.save

void save() @safe

Save configuration back to the original file.

Re-reads the file to get current formatting, merges changes from data, and writes back. This preserves:

  • Comments
  • Indentation
  • Quote styles
  • Separator styles
  • Blank lines

Only changed values get new formatting; unchanged parts remain exactly as they were.