Cleaning formatting from the clipboard text

  1. Download Visual c# from msdn.microsoft.com/vstudio/express/visualcsharp
  2. Create new project as a windows application
  3. Delete the generated form (form1.cs)
  4. Open program.cs
  5. Change the content of the main method to:
    IDataObject data = Clipboard.GetDataObject();
    if (data != null && data.GetDataPresent(DataFormats.Text)) {
    String clipboardText = data.GetData(DataFormats.Text).ToString();
    Clipboard.SetText(clipboardText);
    }
    
  6. Compile and build the program (F6)
  7. Save the project
  8. Open thin bin/Release directory of the project
  9. Create a shortcut to the exefile and copy it. Paste it on the desktop
  10. Add a shortcut key, e.g. Ctrl-Shift-C under properties
  11. Copy some formatted text and try the new shortcut
  12. Paste the text in a rich text editor to see the result