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

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

  •  
  •   as9567585 · 3 天前 · 512 次点击

    img

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