如何在.ASTRO中启用Emmet?

发布于 2025-02-11 16:59:18 字数 539 浏览 2 评论 0原文

https://github.com/withub.com/withastro.com/withastro/withastro/withastro/language-tools/树/主/软件包/语言服务器

我已经在Neovim安装了上面的语言服务器。

该语言服务器带有 emmet我似乎无法使它工作。

如何在中启用emmet .astro文件?

https://github.com/withastro/language-tools/tree/main/packages/language-server

I have installed the language server above in neovim.

The language server comes with emmet support, but I can't seem to get it to work.

How can I enable emmet in .astro files?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

極樂鬼 2025-02-18 16:59:18

打开VSCODE全局设置,然后搜索emmet。滚动到emmet:包含语言部分,然后单击添加项目

“在此处输入图像说明”

在左侧添加astro,在左侧和html向右。重新启动VSCODE,现在您可以在中使用Emmet Tab .ASTRO文件

Open VSCode global settings then search for emmet. Scroll to Emmet: Include Languages section and click on Add Item

enter image description here

add astro on the left and html to the right. Restart VSCode and now you can use emmet tab in .astro files

眼眸里的那抹悲凉 2025-02-18 16:59:18

尝试安装EMMET语言服务器。

与梅森一起,

:MasonInstall emmet-ls

Astro LSP对我也没有正确的操作。

Try installing the emmet language server.

With Mason

:MasonInstall emmet-ls

The Astro LSP didn't do emmet correctly for me either.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文