-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Visual Studio Code extension #999
Comments
https://github.com/kekekeks/Avalonia.Ide - our library for XAML completion |
I found this researching this topic...I haven't tried it yet. https://marketplace.visualstudio.com/items?itemName=PrzemyslawOnak.pimp-my-avalonia |
@ApiumJacob let me know how it goes once you tried. |
@vleeuwenmenno at the moment I decided to go with Rider (30 day free trial). I'm on Ubuntu 18.04. Up until this point I've been using VScode and making console apps only. But the app is getting big enough that its getting difficult to navigate text based menus and it sure would nice to have a file dialog selector so... |
I tried PimpMyAvalonia but it requires .net core 3, This doesn't work because I have .net 6 installed, and I'm using the ubuntu debian package so you can't do side by side installs. Rider isn't an option for me because it isn't free. And I don't want my open source projects to require a payed product, because that will limit contributions. I have also looked at using Uno platform because that does have vscode extension that does code completion for xaml. However it's not currently working on linux. |
My Uno platform issue was caused by an omnisharp bug, which is fixed in that latest release, So I can confirm that xaml code completion does work with Uno in vscode on linux. So for people wanting to develop on linux Uno might be a better choice, at least until Avalonia adds vscode xaml code completion support. |
I'd love to not just have an extension for auto completion of XAML, but also a simple designer that allows me to preview my XAML and identify objects in the visual tree by clicking on them. If I understand correctly, this is already available for Windows users in Visual Studio, so Mac or Linux users are out of luck, although Avalonia targets all three platforms. |
@trampster Could you clarify this? I have .NET Core 3.1 and 6 installed at the same time on Ubuntu 20.04 with the |
I think the extension requires dotnet to be on the path and dotnet --version to be 3.1 But there can be only one dotnet on the path and it's 6. |
I have POP!_OS 21.10 and I have dotnet 6.0 and 3.1. dotnet --version lists only 6.0, dotnet --list-sdks shows both versions and the extension works properly to me, so it might be an issue somewhere else for you. |
Any update on this? Any timeframe when this will be available? |
While not a perfect solution, the "Xml Complete" extension seemingly works flawlessly with axaml files (in the 5 minutes of testing that I did). Sure, it takes about 10 secs after vs code loads for me until the thing kicks in, but after that, it works! |
Any updates? |
It's super difficult to develop ui's without either Rider or Visual Studio. It's possible but super time consuming with the current tools we have. |
I've been using a HotReload all my life and I can say that it's possible! |
I will give this a try, you are talking about the "LIve.Avalonia" package which is mentioned some answers above? |
@XanatosX AvantGarde is maybe useful as a stand-alone previewer: https://github.com/kuiperzone/AvantGarde |
yup, but that wasn't a thing a few months ago. |
CS Code extension is now GA. So we can close this issue imo |
Even something really basic would be nice for editing the XAML files (eg, autocompletion of tag names).
The text was updated successfully, but these errors were encountered: