MAUI templates should respect tabs/spaces preferences like other templates #13782
Labels
area-templates
Project templates, Item Templates for Blazor and MAUI
fixed-in-7.0.92
Look for this fix in 7.0.92!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-preview.3.8149
Look for this fix in 8.0.0-preview.3.8149!
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
t/enhancement ☀️
New feature or request
Milestone
Description
When creating a new MAUI app or adding a page, based on the MAUI app/item template, it should uses spaces instead of tabs if the VS editor preferences are set to use spaces (which is the default, I believe). Other templates seem to do this.
Steps to Reproduce
For comparison, do File / New Project ASP.NET Core Web App, switching the VS IDE options between tabs and spaces.
Note that it adjusts dynamically, respecting the formatting preference. Formatting preferences like indent = 8 with spaces are respected too.
I'm not sure how the other templates achieve this, but hopefully there's some easy, built in mechanism to make it work.
Link to public reproduction project repository
n/a
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly)
Affected platform versions
all
Did you find any workaround?
Workaround: manually reformat.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: