{ config, lib, pkgs, ... }: lib.mkIf config.programs.vscode.copilot.enable { programs.vscode.profiles.default = { extensions = with pkgs.vscode-extensions; [ github.copilot github.copilot-chat ]; userSettings = { "github.copilot.enable" = { "*" = true; plaintext = true; markdown = true; }; "chat.editing.alwaysSaveWithGeneratedChanges" = true; }; }; }