Skip to content
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

Closed
emberian opened this issue May 29, 2017 · 20 comments
Closed

Add a Visual Studio Code extension #999

emberian opened this issue May 29, 2017 · 20 comments
Assignees

Comments

@emberian
Copy link

Even something really basic would be nice for editing the XAML files (eg, autocompletion of tag names).

@kekekeks
Copy link
Member

https://github.com/kekekeks/Avalonia.Ide - our library for XAML completion

@kekekeks kekekeks added this to the Beta 1 milestone Nov 11, 2017
@kekekeks kekekeks self-assigned this Nov 11, 2017
@grokys grokys modified the milestones: Beta 1, Beta 2 Feb 13, 2018
@grokys grokys modified the milestones: 0.7.0, 0.8.0 Jul 5, 2018
@grokys grokys modified the milestones: 0.8.0, 0.9 Apr 5, 2019
@ApiumJacob
Copy link

@vleeuwenmenno
Copy link

@ApiumJacob let me know how it goes once you tried.
Running Fedora 34 here and developing for Linux in .NET even when we only had mono

@ApiumJacob
Copy link

@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...

@trampster
Copy link

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.

@trampster
Copy link

trampster commented Dec 13, 2021

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.

@martin-braun
Copy link

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.

@iinuwa
Copy link

iinuwa commented Jan 28, 2022

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.

@trampster Could you clarify this? I have .NET Core 3.1 and 6 installed at the same time on Ubuntu 20.04 with the dotnet-sdk-3.1 and dotnet-sdk-6.0 packages. I might not be thinking about the same thing that you are though.

@trampster
Copy link

trampster commented Feb 3, 2022

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.

@YoriMirus
Copy link

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.

@Shayan-To
Copy link

Any update on this? Any timeframe when this will be available?

@tizu69
Copy link

tizu69 commented Oct 7, 2022

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!
This, obviously, does not include the designer or anything, but Live.Avalonia should do the trick for now.

@scriptBoris
Copy link

Any updates?

@XanatosX
Copy link

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.
Would be nice to get a status at least.

@scriptBoris
Copy link

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. Would be nice to get a status at least.

I've been using a HotReload all my life and I can say that it's possible!

@XanatosX
Copy link

I will give this a try, you are talking about the "LIve.Avalonia" package which is mentioned some answers above?

@timunie
Copy link
Contributor

timunie commented Jun 28, 2023

@XanatosX AvantGarde is maybe useful as a stand-alone previewer: https://github.com/kuiperzone/AvantGarde

@heartacker
Copy link

https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.vscode-avalonia

there is

@tizu69
Copy link

tizu69 commented Oct 9, 2023

https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.vscode-avalonia

there is

yup, but that wasn't a thing a few months ago.
kinda was the deal breaker for me, I fully switched to GTK now and love it :)

@timunie
Copy link
Contributor

timunie commented Oct 9, 2023

CS Code extension is now GA. So we can close this issue imo

@timunie timunie closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests