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

使用 IDEA 开发 Java ,有什么主题或者插件能够实现将名字不同的对象渲染成不同颜色,以提高区分度

  •  
  •   HeasyYS · 323 天前 · 1442 次点击
    这是一个创建于 323 天前的主题,其中的信息可能已经有所发展或是发生改变。
    List<String> aList = new ArrayList<>();
    List<String> bList = new ArrayList<>();
    

    如题,如何将上述代码中的 aList 与 bList 渲染成不同颜色?
    无需专门指定颜色,只需要不同颜色即可。
    之前用过某主题(插件)能够实现,今天重装系统没备份 config ,然后就想不起来了。

    9 条回复    2023-06-10 01:12:52 +08:00
    mexingchi
        1
    mexingchi  
       323 天前   ❤️ 3
    Rainbow Brackets
    HeasyYS
        2
    HeasyYS  
    OP
       323 天前   ❤️ 2
    @mexingchi #1 感谢回复
    留一份详细设置:Other Settings -> Rainbow Brackets -> Enable rainbow variables
    mexingchi
        3
    mexingchi  
       323 天前
    @HeasyYS 我就改了一两个,基本都是默认的
    connor123
        4
    connor123  
       323 天前
    Rainbow Brackets 是一款插件吧?跟设置有关系吗?
    raptium
        5
    raptium  
       323 天前
    只是变量颜色的话,自带的 semantic highlighting 设置应该就可以吧
    hrong
        6
    hrong  
       323 天前   ❤️ 1
    颜色太多反而影响注意力。。。
    RainCats
        7
    RainCats  
       323 天前
    @HeasyYS 太棒了,一直都有在用 Rainbow Brackets ,但以前都没注意过这个设置
    corningsun
        8
    corningsun  
       323 天前
    IDEA new UI 默认就有了吧?
    arloor
        9
    arloor  
       323 天前
    差生文具多?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   878 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:44 · PVG 05:44 · LAX 14:44 · JFK 17:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.