Comment Anchors [vscode插件推荐] 注释跳转 ANCHOR[id=锚点] LINK path/file.vue#锚点

Comment Anchors [vscode插件推荐] 注释跳转 ANCHOR[id=锚点] LINK path/file.vue#锚点

image

https://marketplace.visualstudio.com/items?itemName=ExodiusStudios.comment-anchors

使用

现在看就是在js里面可以使用跳转,然后如果要在html里面使用,可以加一个

// ANCHOR[id=my-anchor] 注释描述
// LINK #my-anchor
// LINK ./file.vue#my-anchor
// LINK ../path/file.vue#my-anchor

挺好用~ 定义的时候可以不放js里面,LINK的时候需要放在js里面

posted @ 2025-09-03 16:46  彭成刚  阅读(20)  评论(0)    收藏  举报