V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
as9567585
V2EX  ›  JetBrains

求助, WebStrom 怎么自动生成这种变量,太重复了

  •  
  •   as9567585 · 2024-09-16 01:14:52 +08:00 · 1446 次点击
    这是一个创建于 400 天前的主题,其中的信息可能已经有所发展或是发生改变。

    img

    5 条回复    2024-09-16 01:39:13 +08:00
    106npo
        1
    106npo  
       2024-09-16 01:29:49 +08:00
    live template 吧
    as9567585
        2
    as9567585  
    OP
       2024-09-16 01:31:28 +08:00
    @xmumiffy #1 live template 研究了一下,不知道怎么在上放插入变量,能说下吗? 🙏
    106npo
        3
    106npo  
       2024-09-16 01:34:03 +08:00
    $xxx$ 是变量
    as9567585
        4
    as9567585  
    OP
       2024-09-16 01:36:57 +08:00
    @xmumiffy #3 怎么选择位置呢,不是说把整个函数作为模版就行,因为后面还要在标签内部,再添加标签,还要继续在顶部添加变量
    106npo
        5
    106npo  
       2024-09-16 01:39:13 +08:00
    那得上插件了,或者 copilot 应该会生成
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1023 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:41 · PVG 06:41 · LAX 15:41 · JFK 18:41
    ♥ Do have faith in what you're doing.