Bug 14377 - Autotab behavior in code editor is just horrible
Summary: Autotab behavior in code editor is just horrible
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.1.9
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-09-02 18:14 UTC by troy-dawson
Modified: 2013-09-10 03:11 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 troy-dawson 2013-09-02 18:14:29 UTC
What the Xamarin editor is doing with tabs when I edit code is driving me batty.

Eg:

using System;
using System.Drawing;
using MonoMac.Foundation;
using MonoMac.AppKit;

namespace App
{
	static class AppData
	{
		public static void Init()
		{
			string raw_data = DataStore.LoadExternalFile("kanji_work.txt");

			Log.msg(raw_data.Length);
		}
	}
}

select the Log.msg() line and hit return, the result becomes:

using System;
using System.Drawing;
using MonoMac.Foundation;
using MonoMac.AppKit;

namespace App
{
	static class AppData
	{
		public static void Init()
		{
			string raw_data = DataStore.LoadExternalFile("kanji_work.txt");


		|		}
	}
}

or, case #2, copy public static void Init() line and paste, then hit return . ..

the way I do this is:

1) jump to beginning of public state void Init() line (shift-left arrow) until at column 1

2) shift-down arrow to select line

3) cmd-c to copy

4) cmd-left arrow and then up arrow to get back to the start of the line

5) paste to paste the function definition line above the original

6) CR to start typing the new definition

Result is the original member function gets tabbed over:

using System;
using System.Drawing;
using MonoMac.Foundation;
using MonoMac.AppKit;

namespace App
{
	static class AppData
	{
		public static void Init()

			|		public static void Init()
		{
			string raw_data = DataStore.LoadExternalFile("kanji_work.txt");


but what I want is the cursor to be under the p in public on the inserted line.

This happens every 30 seconds or more and I check for updates religiously in the hope the next update will fix it since it's horrible to have to keep fighting the text editor this way.
Comment 1 Mike Krüger 2013-09-10 03:11:27 UTC
fixed in master