zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.14k stars 3.08k forks source link

Add Code Shortcuts For HTML (and maybe other languages) #8156

Closed Hugoonreplit closed 8 months ago

Hugoonreplit commented 8 months ago

Check for existing issues

Describe the feature

The Feature

I think that a perfect feature for .html files in Zed would be like in VSCode where you can simply initialize a div with an id or a class, or even both! Here is a simple example

=> Div with class and id named "test"
.test#test

=> Input with class named "test"
input#test

And as you've seen in the example you can also do this with other arguments like inputs! Not only that but if you need multiple divs or any other element you can simple multiply them with an asterisc followed by the number of times you want the argument.

If applicable, add mockups / screenshots to help present your vision of the feature

Screenshot 2024-02-22 at 00 10 21
jansol commented 8 months ago

So basically "snippets"? #5743 #4611

JosephTLyons commented 8 months ago

I think this might be more specifically about Emmet support:

Is that right @Hugoonreplit? I think I will close this in favor of the aforementinoed.