Any way to get XAML Auto-complete in VS Code?
I recognize this isn't quite a C# question, but it's related. I want to make cross platform apps using MAUI in VS Code, since I develop on a MacBook and recently they announced they're retiring Visual Studio for Mac. As far as I could tell, there isn't a way but I'm wondering if maybe I missed something.
10 Replies
I assume you have DevKit installed already? If that doesn't give you XAML support, I'd look for some other plugin that's maybe specific to MAUI or XAML
Failing that, Rider
Make sure you're using https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-maui
.NET MAUI - Visual Studio Marketplace
Extension for Visual Studio Code - Extend C# Dev Kit with tools for building .NET Multi-platform App UI (MAUI) apps
I have both the extensions you two listed, no luck unfortunately.
I found one extension for the Uno platform that advertises various QoL for MAUI in VS Code, including XAML auto complete but I don’t yet know exactly what a platform is and whether or not I should use it or stay vanilla.
I’m just getting started so I’m wondering whether or not it’s a good idea to use something like a library
If you're not seeing XAML completion with the MAUI extension installed, something is wrong
have you built the project at least once?
You can try
rogalmic.vscode-xml-complete
if you configure the schema...The .NET MAUI extension gives me an error on startup saying that it couldn't find an Android SDK. Is that blocking the rest of the extension, including autocomplete, from starting?
Yeah
Almost certainly
Strange. Is there a way to bypass it for now or do I just need to download an Android SDK?
No clue
@333fred I installed Android SDK and accepted a million licenses, Now I have extremely minimal autocomplete. I don't know XAML at all, so I don't know what's missing or there but all I can find that autocompletes is ContentPage.
Doesn't even put </closing> tags for me :(