## 1. 打开 help>Eclipse Marketplace... ![](https://s4.51cto.com/images/blog/202105/06/fa8076c4ce2fdd812ae530e20f0a76ae.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) ## 2. 安装 Grep Console 插件 > 在"Search"中搜索"Grep Console" ![](https://s4.51cto.com/images/blog/202105/06/ca4e810e1c15d06ba134953c6e720a4c.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) > 安装 ![](https://s4.51cto.com/images/blog/202105/06/aad93afb23d8d2277fdc3b19346d421e.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) > 选择相信证书 ![](https://s4.51cto.com/images/blog/202105/06/2a799ef19e0cc40cb5367acf074bcdb5.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) > 安装完毕,重启Eclipse ![](https://s4.51cto.com/images/blog/202105/06/968602298a715121179e108296fbf3b5.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) ## 3. 颜色配置调整 > 打开 Window>Preferences>Grep Console ,进行设置 ![](https://s4.51cto.com/images/blog/202105/06/a79ceae31234754db21004256fb99761.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) > 这里默认只有4条,其余的需要自行添加,颜色配置要选中对应的条目,然后点击右侧的 Edit... 进行编辑,去掉正则表达式中的中括号,修改对应的表达式 ``` // debug .*(\QDEBUG\E).* // warn .*(\QWARN\E).* // error .*(\QERROR\E).* // fatal .*(\QFATAL\E).* // info .*(\QINFO\E).* // trace .*(\QTRACE\E).* ``` ![](https://s4.51cto.com/images/blog/202105/06/c6d68fce7f4dcce63c36b9e6eefd12b3.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) > 字体颜色设置 ![](https://s4.51cto.com/images/blog/202105/06/3b769736cb2cbb54098a78fdcb17d348.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) ``` // debug 00ffff // warn ffff00 // error ff0000 // fatal 800000 // info 008000 // trace 808080 ``` > 效果如下 ![](https://s4.51cto.com/images/blog/202105/06/5c29e1a55d3488cb17e4eb3d1c8c2464.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=) > 注意:如果设置不生效,请恢复默认配置,重新设置即可 ``` ![](https://s4.51cto.com/images/blog/202105/06/4efc9249e4ae404861b0f8a73806aac6.png?x-oss-process=image/watermark,size_14,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)