zed
zed copied to clipboard
Please improve the auto-completion of DOM tags in React.
Check for existing issues
- [X] Completed
Describe the feature
Currently, when I type "div" in a tsx or jsx file, there is no IntelliSense support. Suggestions only work after I type the angle bracket '<', and I still have to close the tag manually, which is inconvenient.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
@path-of-reason This really helps a lot, rewriting tags all the time is tiring
@JosephTLyons This is a feature that brings a totally different experience to the developer, let's look more at the experience to build a cutting-edge product
I agree, this is the only issue that stop me from using this IDE. Might implement it myself, if it's not the priority.
Coming from #5267, the tag auto-close doesn’t seem to work for HTML either.
Coming from #5267, the tag auto-close doesn’t seem to work for HTML either.
Which version of Zed are you on? Do you have the HTML extension installed?
Coming from #5267, the tag auto-close doesn’t seem to work for HTML either.
Which version of Zed are you on? Do you have the HTML extension installed?
I just tested on the latest preview 0.138.1, and the problem still persists. And I do have the HTML extension installed as well.
https://github.com/zed-industries/zed/assets/15154097/3b56a89e-1925-414e-aebd-237878e0ee8e
It's after you complete the tag with > that the LSP closes it for you.
It's after you complete the tag with
>that the LSP closes it for you.
Ah, my bad, I'm actually showing the wrong demo here. But yeah, but yeah, it's working in the latest 0.138 now😅 But it wasn't the case for 0.137 before.
This keeps me from switching to Zed! Also shortcuts for code snippets such as rsfc to create a React function component, etc... This makes your slogan obsolete ;)
I don't know, there is always something basic that keeps me from switching to zed
This and no snippets support are the main reason I have not switched to Zed fully
typing rfc and getting a react component scaffolded for you is way to good to pass up on
For what it's worth, we've recently landed support for snippets in https://github.com/zed-industries/zed/pull/13253
@osiewicz Hi, i did see the update on snippet support and already tried it out, how ever, i noticed that the formatting is seemingly bugged.
when the snipper is expanded it does not appear as it should..see screenshots bellow
Do you mean that <p></p> is getting de-indented?
Yes, that
Any way to fix that? @osiewicz
No, I'm sorry, I haven't looked into it yet. A wild guess is that formatting gets applied to completions automatically, which may not be desired for snippets. If so, we should add a way for a language server to opt out of automatic formatting
Any movement on this? I'm on Zed 0.143.7, with the extension and tags aren't closing.
https://github.com/user-attachments/assets/0b0ce348-448f-4032-b7ac-6fb9beb6caee
Any news on this?
Just switched over to zed, I primarily work in Next.JS so a lot of TSX files. Any update on if this is being fixed soon?