Bug 13031 - Wrong indent on paste
Summary: Wrong indent on paste
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-07-03 07:01 UTC by Rune Skovbo Johansen
Modified: 2013-09-10 06:05 UTC (History)
1 user (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 Rune Skovbo Johansen 2013-07-03 07:01:02 UTC
When pasting C# text, the line that is pasted into gets indented according to Smart Indentation no matter of Smart Indentation is even turned on or not.

Screencast showing the issue: http://screencast.com/t/8tru6xmWVcgI

Combine it with the fact that Smart Indentation is broken (see case 4096), and the result is that there's no sane way to use MonoDevelop with files where content inside namespaces shouldn't be indented. Regardless of project options and user preferences, the indentation is always ruined on every paste.
Comment 1 Mike Krüger 2013-07-03 07:25:13 UTC
We need a better option set for all these options.
Comment 2 Mike Krüger 2013-09-10 06:05:49 UTC
Now that the indenter is fixed it should be better (I expect that it gets released as 4.0.14)

But I linked now the indent on paste behavior to the smart indenting as well.

/fixed