• 请不要在回答技术问题时复制粘贴 AI 生成的内容
siwadiya
V2EX  ›  程序员

Vscode 有办法在 vue 文件中显示 jsdoc 的注释吗?

  •  
  •   siwadiya · Aug 10, 2021 · 2666 views
    This topic created in 1921 days ago, the information mentioned may be changed or developed.

    如果是 js 文件引入方法,hover 上去会自动显示 jsdoc 的注释, 而.vue 文件的 script 中引入的方法,hover 上去并不会显示注释, 所以想问问大家有办法能够显示吗

    4 replies  •  2021-08-11 10:27:53 +08:00
    KouShuiYu
    KouShuiYu
    Aug 10, 2021
    1
    我的可以提示,vetur 换成 valar 应该就可以了
    rebel28
    rebel28
    Aug 10, 2021
    2
    换成 webstorm 就好了 😂
    siwadiya
    siwadiya
    OP
    Aug 11, 2021
    3
    @KouShuiYu 刚刚试了是 vscode 默认可以显示的,但是 import 的路径如果使用路径别名的话就不会有提示
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2067 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 01:31 · PVG 09:31 · LAX 17:31 · JFK 20:31
    ♥ Do have faith in what you're doing.