V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
liangyun

IDEA 插件, 支持 SEL 代码提示, 自定义参数, 函数参数, 返回值

  •  
  •   liangyun · Dec 19, 2023 · 1853 views
    This topic created in 865 days ago, the information mentioned may be changed or developed.
    IDEA 默认 SpEL 表达式的代码提示不支持方法的入参, 返回值, 以及自定义参数, 让很多写三方库的朋友们十分难受, 重命名后也没有检查,就很无奈. 自 2013 年起就有很多人给 IDEA 官方提供反馈, 但是迟迟没有解决

    因此我写了`SpEL Extension`这么个插件, 用于支持 IDEA 代码提示功能

    插件地址: https://plugins.jetbrains.com/plugin/23337-spel-extension

    支持 IDEA 专业版 2021.3 以后的版本

    需要搭配注解库使用(只有注解, 不会影响任何代码运行, 如果担心安全问题可以自己写注解, 注意包名一致即可):


    使用方式



    IDEA 插件源码: https://github.com/ly-chn/spel-extension-idea
    注解库源码: https://github.com/ly-chn/spel-extension
    2 replies    2023-12-20 16:03:25 +08:00
    asmoker
        1
    asmoker  
       Dec 20, 2023 via Android
    支持一波👍🏻
    liangyun
        2
    liangyun  
    OP
       Dec 20, 2023
    @asmoker 😘感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2434 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:33 · PVG 23:33 · LAX 08:33 · JFK 11:33
    ♥ Do have faith in what you're doing.