Bug 5154 - Virtual indent doesn't work for non-C# files
Summary: Virtual indent doesn't work for non-C# files
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: Normal enhancement
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-05-17 17:35 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-09-13 09:55 UTC (History)
2 users (show)

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:

Description Mikayla Hutchinson [MSFT] 2012-05-17 17:35:50 UTC
The virtual indent mode doesn't work for non-C# files and other files that fall back to the copy-previous-line indenter, e.g. xml files, text files
Comment 1 Mike Krüger 2012-05-18 02:13:59 UTC
It's no bug - it's not implemented there.
Xml files are your department. I don't see any way to do it for text files.
Comment 2 Mike Krüger 2012-05-18 02:14:20 UTC
Setting that to enhancement.
Comment 3 Mikayla Hutchinson [MSFT] 2012-05-18 14:06:26 UTC
If we can't do virtual indent for text files, then the option to remove trailing whitespace is broken.

Why isn't it possible to simply use the whitespace of the previous non-empty line as the virtual indent?
Comment 4 Mike Krüger 2012-05-18 16:29:17 UTC
There is no trailing whitspace option - the label is wrong. The virtual indent mode has a different behaviour. 

Hm, for text files this could be implemented this way, right.
Comment 5 Mike Krüger 2013-09-13 09:55:03 UTC