在IntelliJ中,如何在搜索(所有位置)结果中排除\ target \ *.html文件? [英] In IntelliJ, how to exclude \target\*.html files in search (everywhere) result?

查看:824
本文介绍了在IntelliJ中,如何在搜索(所有位置)结果中排除\ target \ *.html文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个IntelliJ java项目,我的源文件夹下有一些HTML文件模板.该项目已构建并输出到\ target \文件夹. HTML文件模板也将复制到目标文件夹.

I have a IntelliJ java project, there are some HTML file templates under my source folder. This project is built and output to \target\ folder. The HTML file templates are copied over to the target folder as well.

我一直试图从到处搜索"结果中排除目标文件夹中的HTML文件.

I have been trying to exclude the HTML files in target folder from "search everywhere" result.

我已经在项目结构设置"中将\ target文件夹设置为已排除" .

但是这不起作用:尽管以这种方式排除了target * .java和target * .js,但没有排除target * .html文件.我认为IntelliJ的已排除"文件夹仅排除了将其视为源文件的这些文件,但html没有.

But this is not working: although target*.java and target*.js are excluded in this way, the target*.html files are not. I think IntelliJ's 'Excluded' folder only exclude these files it considered as source files, but html is not.

有什么解决方法吗?我正在使用IntelliJ Idea 2016.1.3

Is there any workaround for this? I am using IntelliJ Idea 2016.1.3

推荐答案

就我而言,我将目标文件夹标记为已排除,但也有一部分被标记为源.这给我带来了问题.

In my case, I had the target folder marked as excluded but also, partially, marked as source. This caused the problem for me.

这篇关于在IntelliJ中,如何在搜索(所有位置)结果中排除\ target \ *.html文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆