Bug 11057 - Open .axml files with Source Code Editor instead of LayoutEditor
Summary: Open .axml files with Source Code Editor instead of LayoutEditor
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: unspecified
Hardware: All All
: Highest enhancement
Target Milestone: ---
Assignee: Jérémie Laval
: 6441 23849 ()
Depends on:
Reported: 2013-03-11 18:39 UTC by Brad Robinson
Modified: 2017-07-21 15:50 UTC (History)
20 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 for Bug 11057 on Developer Community or GitHub 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 or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Brad Robinson 2013-03-11 18:39:08 UTC
More often than not, I prefer to edit Android .axml files with the source code editor in preference to the layout editor.
Could we please get an option to make the source code editor the default?

See also: http://forums.xamarin.com/discussion/comment/7279#Comment_7279
Comment 1 Adrian Terwedow 2013-07-30 04:13:54 UTC
+1 for this request - will safe 2 minutes each working day .D
Comment 2 Peter Newhook 2014-03-10 21:33:27 UTC
+1 xml autocompletion is key
Comment 3 Aaron Milam 2014-05-16 16:10:49 UTC
Might as well +1 this again. I've been looking for this exact feature.
Comment 4 Nate Cook 2014-11-13 17:45:41 UTC
Comment 5 Greg 2015-01-23 14:07:15 UTC
Comment 6 William 2015-05-02 15:17:30 UTC
+1 (With code folding!)
Comment 7 3803657 2015-06-29 23:30:06 UTC
+1 (With code folding!)
Comment 8 Mikhail Melnik 2015-07-29 20:35:32 UTC
+1 (With code folding!)
Comment 9 Eric L 2016-04-12 15:07:12 UTC
Comment 10 nmilcoff 2016-05-12 14:28:48 UTC
Comment 11 Andrew 2016-09-20 21:41:26 UTC
+1 (With code folding!)
Comment 12 Tyler Kostuch 2016-10-05 21:46:01 UTC
Comment 13 Madalyn 2016-11-15 20:21:42 UTC
*** Bug 25802 has been marked as a duplicate of this bug. ***
Comment 14 Madalyn 2016-11-15 20:23:09 UTC
*** Bug 23849 has been marked as a duplicate of this bug. ***
Comment 15 Sung Kang 2016-12-08 21:14:04 UTC
Comment 16 Stephen Shaw 2017-02-10 17:11:04 UTC
*** Bug 6441 has been marked as a duplicate of this bug. ***
Comment 17 bugzilla.ianua 2017-05-18 19:47:52 UTC
Another vote for this feature. I Looked for this feature, found this request, logged in and typed this - and still waiting for the Designer.
Comment 18 Niels 2017-07-06 12:00:20 UTC
+5! Designer hardly ever works or takes forever, switching to source causes VS to hang.
Comment 19 Stephen Shaw 2017-07-06 17:10:46 UTC
@Niels Would you be willing to file a bug with logs for the VS hang? Thanks!
Comment 20 Niels 2017-07-06 17:44:35 UTC
I already did: Bug 57980
Comment 21 Stephen Shaw 2017-07-06 17:50:42 UTC
@Niels thanks!
Comment 22 Jason DeBoever 2017-07-18 15:14:14 UTC
It's worth noting that you can right-click on an .axml file and "Open-With -> Source Code Editor".

That said "Confirming" as an enhancement request since Source Code Editor cannot be set as the double-click default.
Comment 23 Niels 2017-07-19 05:56:44 UTC
"Open with sourcecode editor" only works from solution explorer, not from search results. So that is not a good workaround.
Comment 24 Nate Cook 2017-07-19 07:49:33 UTC
+1, we almost always use search results to navigate to a file. There really is no good workaround.
Comment 25 Jason DeBoever 2017-07-19 11:35:12 UTC
Surprisingly, I did not see 'open with' from search window as an existing enhancement request either so I created it here: https://bugzilla.xamarin.com/show_bug.cgi?id=58241
Comment 26 Jason DeBoever 2017-07-19 11:39:39 UTC
Also bumping the priority on this since there is a ton of interest and my workaround has been shown inadequate :)
Comment 27 Stephen Shaw 2017-07-21 15:25:52 UTC
Quick note: There is an option to right click "open with" -> source code editor. However, there is no intellisense, etc. It is purely an xml editor at that point.
Comment 28 Nate Cook 2017-07-21 15:41:43 UTC
I think you're referring to right clicking in the solution pad right? Again, the problem is that you can't do that from search results. If you open an axml file from the search bar it does not highlight that file in the solution pad. So you have to hunt for that file in the solution pad before you can right click to "open with". A real world project has many axml files; it is not practical to hunt for them in the solution pad each time. So we are stuck with the default, which is the layout editor.
Comment 29 Justin Toth 2017-07-21 15:50:02 UTC
Agreed, that doesn't apply in the search window or search results windows. I feel like those working on this have small sample projects with 10 axml files so they don't feel the pain that we do with hundreds or thousands of axml files in a real world app. Really the search results window is the most applicable to this, consider the current UX:

- Search for code that resides in an axml file.
- View the search results, which show the axml code and a line number.
- Double click on a search result.
- Notice that it opens up the designer view, so you don't even see the code that was in the search results window.

A much more intuitive UX would be to open the source code editor immediately and set the cursor on the line of code from the search results window. This would behave the same way that every other IDE in the world behaves...