You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Microsoft.Android.Templates] New files should open editor (#8623)
Fixes: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1918037
Context: https://github.com/dotnet/templating/wiki/Reference-for-template.json
Context: https://github.com/dotnet/templating/wiki/Post-Action-Registry#open-a-file-in-the-editor
Within Visual Studio, if you:
1. Create a new .NET MAUI or .NET Android app, then
2. Go to the Solution Explorer, then
3. Right-click a folder, then click Add > New Item > Android, then
4. Double-click the **Android Activity** template.
The expected result is that a new Android Activity based on the
Android Activity template will be added to your solution
*and opened in the editor*.
Instead, a new Android Activity is added, but it is *not* opened.
Update the `.template.config/template.json` files to contain a
`postActions` section with a `openInEditor` id. This *should* cause
Visual Studio to open the new files within the editor.
0 commit comments