V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
HeasyYS
V2EX  ›  程序员

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

  •  
  •   HeasyYS · Jun 9, 2023 · 2522 views
    This topic created in 1053 days ago, the information mentioned may be changed or developed.
    List<String> aList = new ArrayList<>();
    List<String> bList = new ArrayList<>();
    

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

    9 replies    2023-06-10 01:12:52 +08:00
    mexingchi
        1
    mexingchi  
       Jun 9, 2023   ❤️ 3
    Rainbow Brackets
    HeasyYS
        2
    HeasyYS  
    OP
       Jun 9, 2023   ❤️ 2
    @mexingchi #1 感谢回复
    留一份详细设置:Other Settings -> Rainbow Brackets -> Enable rainbow variables
    mexingchi
        3
    mexingchi  
       Jun 9, 2023
    @HeasyYS 我就改了一两个,基本都是默认的
    connor123
        4
    connor123  
       Jun 9, 2023
    Rainbow Brackets 是一款插件吧?跟设置有关系吗?
    raptium
        5
    raptium  
       Jun 9, 2023
    只是变量颜色的话,自带的 semantic highlighting 设置应该就可以吧
    hrong
        6
    hrong  
       Jun 9, 2023   ❤️ 1
    颜色太多反而影响注意力。。。
    RainCats
        7
    RainCats  
       Jun 9, 2023
    @HeasyYS 太棒了,一直都有在用 Rainbow Brackets ,但以前都没注意过这个设置
    corningsun
        8
    corningsun  
       Jun 9, 2023
    IDEA new UI 默认就有了吧?
    arloor
        9
    arloor  
       Jun 10, 2023
    差生文具多?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5875 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 63ms · UTC 01:53 · PVG 09:53 · LAX 18:53 · JFK 21:53
    ♥ Do have faith in what you're doing.