Bug 58050 - Hitting "ENTER" key in Android XML source-view places cursor in misalignment with rest of elements.
Summary: Hitting "ENTER" key in Android XML source-view places cursor in misalignment ...
Status: CONFIRMED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-07-10 15:13 UTC by Pierce Boggan [MSFT]
Modified: 2017-07-11 17:55 UTC (History)
7 users (show)

Tags: vs ac
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 for Bug 58050 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description Pierce Boggan [MSFT] 2017-07-10 15:13:25 UTC
# Steps to reproduce
1. Create a blank Android app.
2. Open layout/Main.axml.
3. Switch from Design to Source view.
4. Place the cursor on the last character on the "android:orientation='vertical'" line.
5. Hit ENTER.

# Expected behavior
Cursor maintains alignment with rest of element spacing in layout.

# Actual behavior
Cursor randomly selects a position on the next line. This is a pretty major papercut, especially when you are adding lots of XML properties to controls and layouts in source view. Here is the bug in action:
https://www.screencast.com/t/8xh6lHWJ

# Test environment (full version information)
Environment Information: https://gist.github.com/pierceboggan/363ef465c39316b16a4299e351387165
Comment 1 Pierce Boggan [MSFT] 2017-07-10 15:35:45 UTC
In Visual Studio for Mac Preview 7.1 this functions as intended:
https://www.screencast.com/t/wuQNJtOln