Not a long ago I've finally updated the platform to both iOS 7 and Xamarin Studio 4.2.1 etc.
I don't know if the problems were discussed, it is hard to find over this forum, but let me list the most annoying here.
Copy-paste code with @"string" constants
Copy-paste code with @"string" constants at newline produces several \t inside a constant:
// lets copy the following:
var str1 =
@"hello";
var str2 =
"world";
// then let's paste:
var str1 =
@" hello"; // omg
var str2 =
"world"; // okay
As for me, it is a serious major problem, when someone pastes a large piece of code, he even couldn't see something is broken if the @"constant" is outside of screen.
If-else-if-else-if-else sequence formatting
Lets just type a code:
int a = 0;
if (1 > 0)
a = 1;
else
if (2 < 10)
a = 2;
else
if (3 > 15)
a = 3;
else
if (18 > 99)
a = 4;
Is that normal? I didn't find any setting in formatting options to avoid such behavior. I even unable to use Shift+Tab (for a single line) to return the indentation to preferred position, I have to use backspace or something. But it works when Shift-tabbing the selection... But every change in a line returns to indents it back to that thing above.
As for me, there a two kinds of behavior for if-else-if-else sequence:
Indent every next if:
if (1 > 0) a = 1; else if (2 < 10) a = 2; else if (3 > 15) a = 3;
Do not indent after else:
if (1 > 0) a = 1; else if (2 < 10) a = 2; else if (3 > 15) a = 3;
I don't know if someone may prefer the first option (I don't think it is readable enough when the sequence is really long), I prefer the second. But anyway, the current behavior should be fixed.
Bookmarks and cursor position
And the last one doesn't relates to a new Xamarin Studio, but as I remember always behave like that. It is related to bookmarks. I really love bookmarks sometimes, I use custom Ctrl+1 to set and Alt+1 to jump to the bookmark. But the thing is the cursor position after jumping to bookmark. When the next bookmark is above current cursor position, the cursor will stay at the top of text area, when below - at the bottom. But I can't always predict where is my next bookmark and it is really annoying to find the cursor when you tired. So, dear Xamarin Studio developers, could you please add an option to always put the cursor at the center of screen after jumping to next (or previous) bookmark? - this way people will always know where to put there eyes to find it.
...But anyway, thank you for your work! I hates Mac but I loves to work with Xamarin Studio on Mac! =)