slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.64k stars 607 forks source link

[Q&A] How to view Slint Preview on Zed editor #6752

Closed 0xkelvin closed 1 week ago

0xkelvin commented 1 week ago
image

Do we have show preview feature on Zed editor ?

ogoffart commented 1 week ago

I am not familiar with the zed editor, but you should look for "code actions" or "code lenses" when having the cursor on the name of a component in a .slint file.

(I'm assuming you have the extension )

If you figure it out, please leave a comment on how to do it.

SO9010 commented 1 week ago

@0xkelvin I had a look at the code for the Zed extension, it looks like it's mostly just highlighting for now:

https://gitlab.com/flukejones/zed-slint

I am assuming that you are using the slint extension from the Zed extension store!

Sk44rt commented 1 week ago

@0xkelvin I had a look at the code for the Zed extension, it looks like it's mostly just highlighting for now:

https://gitlab.com/flukejones/zed-slint

I am assuming that you are using the slint extension from the Zed extension store!

it seems that zed-editor doesn't give plugins as many features as vscode does