Bug 511 - Trim blank spaces when copy-pasting
Summary: Trim blank spaces when copy-pasting
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.8 Alpha 2
Hardware: PC Mac OS
: Lowest enhancement
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-08-29 03:18 UTC by Lluis Sanchez
Modified: 2012-03-28 08:06 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Lluis Sanchez 2011-08-29 03:18:53 UTC
Is there an option when copy-pasting code (e.g. from tutorial) for the lines to be trimmed (many blank spaces at the end). IMO this should be the default (if it's an option somewhere).

mhutch: This would be a good option for the new "quick fix" infrastructure in MD 3.0. We could make the fix available immediately after pasting.
Comment 1 Mike Krüger 2011-08-29 09:24:36 UTC
I don't think that this should be the default - do you've an example of an IDE doing that ?
I wouldn't expect that my editor does this. This use case you describing the on the fly formatter should fix.

How about that ?
Comment 2 Mike Krüger 2012-03-28 08:06:31 UTC
Implemented that one - it's part of 'on the fly' formatting. 

Let's see what happens.