MSDN Community

Clipboard History in Windows 10/11

Posted by JaneDoe on September 15, 2025 ยท 12 replies

The Clipboard History feature lets you view and paste items you previously copied. It is especially useful for developers who frequently switch between code snippets, URLs, and file paths.

Enabling Clipboard History

Open Settings โ†’ System โ†’ Clipboard and turn on Clipboard history. You can also enable it via PowerShell:

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Clipboard" -Name "EnableClipboardHistory" -Value 1

Keyboard Shortcut

Press Win + V to open the Clipboard UI. From there you can:

Programmatic Access (C#)

Starting with Windows 10 version 1809 you can access the clipboard history via the Windows.ApplicationModel.DataTransfer namespace. Example:

using Windows.ApplicationModel.DataTransfer;

public async Task<List<string>> GetClipboardHistoryAsync()
{
    var history = await Clipboard.GetHistoryItemsAsync();
    return history.Select(item => item.Content?.GetTextAsync().GetAwaiter().GetResult() ?? string.Empty).ToList();
}

Common Issues

If the clipboard history is not persisting across reboots, make sure you have Sync across devices enabled and that your Microsoft account is signed in.

Comments

JohnSmith โ€ข Sep 16, 2025
Great article! I was unaware you could pin items. Very handy for code snippets.
AliceW โ€ข Sep 17, 2025
Is there any way to export the clipboard history?