madskristensen / Tweakster

A Visual Studio extension
Apache License 2.0
239 stars 23 forks source link

"Copy without indentation" removes all formatting of the copied text #47

Closed pyrocumulus closed 3 years ago

pyrocumulus commented 4 years ago

Problem When I enable the "Copy without indentation" option, all formatting is removed from the copied text.

How to reproduce

  1. Enable "Copy without indentation"
  2. Open a file and make a selection of multiple lines, with the starting point at a different indentation than the other lines: image
  3. Copy
  4. Switch to Word, Outlook or any other application capable of formatted text and paste: image

Expected result That formatting is retained between copy and pasting: image

Note The problem only seems to occur when there is a difference in indentation that needs to get corrected. Selecting multiple lines of equal length and indentation works as expected, also with this option on.