zh-lx / code-inspector

Click the dom on the page, it will open your IDE and position the cursor to the source code location of the dom.
https://inspector.fe-dev.cn/en
MIT License
1.52k stars 113 forks source link

支持 Astro 框架 #88

Closed bowencool closed 4 months ago

bowencool commented 5 months ago
image

我发现Astro已经在网页上添加源码位置信息了,但找了半天不知道如何使用

zh-lx commented 5 months ago

目前还不支持,上面的源码是 astro 编译器自带的,不是插件注入的,astro 应该自带这个功能,可以查文档看下。插件会在后面支持 astro

zh-lx commented 4 months ago

已在 0.9.0 中支持了 astro 框架,欢迎安装体验

bowencool commented 4 months ago

已在 0.9.0 中支持了 astro 框架,欢迎安装体验

好像不能跳转到 md 文件,举个例子:文章详情页只能跳转到 PostDetail.astro 文件,而不能跳转到具体的内容文件 src/content/blog/xxx.md

插件很好用,加油!