// SetEnableClipboardHistory.cs // // Enable Clipboard History. // Turns on Windows+V clipboard history. // // Usage: dotnet new console -o SetEnableClipboardHistory, replace Program.cs with this // file, then dotnet run. using System; using Microsoft.Win32; using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Clipboard"); key.SetValue("EnableClipboardHistory", 1, RegistryValueKind.DWord); Console.WriteLine("Enable Clipboard History applied.");