1、找到该配置文件的默认目录:

  C:\Users\用户名\AppData\Roaming\JetBrains\IntelliJIdea2021.1\options\find.xml

2、先备份,再打开文件选择添加自己需要的部分:

<application>
  <component name="FindSettings">
    <option name="customScope" value="All Places" />
    <option name="defaultScopeName" value="All Places" />
    <option name="SEARCH_SCOPE" value="All Places" />
    <option name="FILE_MASK" value="*.java" />
    <mask>*.java</mask>
    <mask>*.xml</mask>
    <mask>*.yml</mask>
    <mask>*.properties</mask>
    <mask>*.html</mask>
    <mask>*.css</mask>
    <mask>*.js</mask>
    <mask>*.jsp</mask>
    <mask>*.vue</mask>
    <mask>*.md</mask>
    <mask>*.json</mask>
  </component>
</application>

3、重启IDEA

 

 

 

参考文章:

  (37条消息) 2021版idea的file mask 为空解决办法_article711的博客-CSDN博客_file idea查找 mask无效