idea Mybatis mapper配置文件删除SQL语句背景色
原样式:

看着很不爽
本文 idea 版本为:idea 2020.3.1,以下操作均基于此版本进行
解决办法
1.去除警告
Settings>Editor>Inspections>SQL>No data sources configured 和 SQL dialect detection
No data sources configured :没有配置数据源
SQL dialect detection:SQL方言检测

去除警告过后还有默写语句存在背景色

2.去除“注入语言”背景色
**Settings>Editor>Color Scheme>Code>Injected language fragement **

最终样式:


浙公网安备 33010602011771号