天天看点

Intellij如何去掉mybatis Mapper.xml背景色Intellij如何去掉mybatis Mapper.xml背景色

Intellij如何去掉mybatis Mapper.xml背景色

1:现在公司中使用mybatis的频率非常高,一般都会用MBG来生成基础的代码文件。在intellij中查看mapper.xml文件的时候,发现文件会有背景色,极度影响视觉感受,还让不让人写代码了!!!

Intellij如何去掉mybatis Mapper.xml背景色Intellij如何去掉mybatis Mapper.xml背景色

2:我们把鼠标放上去可以看到出现背景色的原因

第一个是,IDE对data source的检测

Intellij如何去掉mybatis Mapper.xml背景色Intellij如何去掉mybatis Mapper.xml背景色

第二个是,IDE对SQL Dialect的检测

Intellij如何去掉mybatis Mapper.xml背景色Intellij如何去掉mybatis Mapper.xml背景色

3:解决方法就是不让IDE检测上述内容,把图片中所选项√去掉

Intellij如何去掉mybatis Mapper.xml背景色Intellij如何去掉mybatis Mapper.xml背景色

4:设置好之后,界面看起来舒服多了,但是还有一层灰蒙蒙的背景色

Intellij如何去掉mybatis Mapper.xml背景色Intellij如何去掉mybatis Mapper.xml背景色

5:去掉灰蒙蒙背景色,把Background的√去掉即可

Intellij如何去掉mybatis Mapper.xml背景色Intellij如何去掉mybatis Mapper.xml背景色

小尾巴~~

只要有积累,就会有进步

继续阅读