idea 中String.format 会提示 class or interface expected

idea 中String.format 会提示 class or interface expected,但是运行都是正常的

解决方案:

依次打开:File - Strings - Editor - Language Injections 

将不需要的项目反选 ,保存即可

原文地址:https://www.cnblogs.com/curen/p/9949180.html