C
C#12mo ago
gameyall232

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
Angius
Angius12mo ago
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
333fred
333fred12mo ago
.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
gameyall232
gameyall232OP12mo ago
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
333fred
333fred12mo ago
If you're not seeing XAML completion with the MAUI extension installed, something is wrong
LordKalma (CT7ALW)
have you built the project at least once? You can try rogalmic.vscode-xml-complete if you configure the schema...
gameyall232
gameyall232OP12mo ago
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
333fred
333fred12mo ago
Almost certainly
gameyall232
gameyall232OP12mo ago
Strange. Is there a way to bypass it for now or do I just need to download an Android SDK?
333fred
333fred12mo ago
No clue
gameyall232
gameyall232OP12mo ago
@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 :(
Want results from more Discord servers?
Add your server