Bug 57287 (vs-504203) - Inconsistent behavior in XML/XAML editor between vs/vsmac when hitting "ENTER" in to add a new attribute to an element
Summary: Inconsistent behavior in XML/XAML editor between vs/vsmac when hitting "ENTER...
Status: CONFIRMED
Alias: vs-504203
Product: Xamarin Studio
Classification: Desktop
Component: XML Editor (show other bugs)
Version: 7.1 (d15-3)
Hardware: PC Mac OS
: Normal normal
Target Milestone: 15.6
Assignee: Kirill Osenkov
URL:
Depends on:
Blocks:
 
Reported: 2017-06-08 18:51 UTC by Pierce Boggan [MSFT]
Modified: 2017-10-04 15:22 UTC (History)
7 users (show)

See Also:
Tags: vs-sync
Is this bug a regression?: ---
Last known good build:


Attachments

Description Pierce Boggan [MSFT] 2017-06-08 18:51:24 UTC
# Steps to Reproduce
1. File -> New -> Multiplatform App -> Blank Forms App with default settings.
2. Open MainPage.xaml.
3. Add "<Label Text="Hello"" and hit ENTER.

# Expected Behavior
Cursor moves to new line with same indentation/position as T character in Text, as in Visual Studio (on Windows):
https://www.screencast.com/t/k814k5gZrkN

# Actual Behavior
Cursor moves to new line and position 0 instead of current indentation:
https://www.screencast.com/t/3HexgLWZllz

Environment Info: https://gist.github.com/pierceboggan/7e047feac3f9baae0b1d39c00e816753
Comment 1 Pierce Boggan [MSFT] 2017-06-08 18:52:19 UTC
CORRECTION to "Actual Behavior":

Cursor moves to new line with _incorrect_ indentation.
Comment 2 iain 2017-08-02 16:24:59 UTC
Confirmed that it indents to the current indentation setting, rather than lining it up with the T character

Note You need to log in before you can comment on or make changes to this bug.