You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VSCode IntelliSense在.astro文件中无法正常工作怎么办?

Astro + Qwik + TypeScript项目IntelliSense触发异常问题

我在用Qwik和TypeScript开发Astro项目时,遇到了IntelliSense的触发问题:按下Ctrl+Space快捷键无法正常唤起代码提示,具体表现为:

  • Benefit组件无法通过快捷键触发IntelliSense
  • 只有手动开始输入内容后,才会出现代码提示

项目中benefit.astro的代码如下:

/* benefit.astro */

type Props = {
    title: string;
    content: string;
    horizontalInvertion?: boolean;
}

const { title, content, horizontalInvertion } = Astro.props;

我已经尝试过以下方法,但问题仍未解决:

  • 重启VSCode
  • 卸载并重新安装Astro扩展

内容的提问来源于stack exchange,提问作者fellipeutaka

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.05 08:55:55