Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reinclude excluded file in Intellij

In Intellij, if I have an error in a source file, then when building I can choose "Exclude from Compile" by right-clicking on the file in the build output. But, now I would like to include the file again. Where is the menu item that lets me put it back into the build? (The file shows in the Project window, and has a small 'x' in its icon to show it is excluded, but I see no way to get this to go away.)

Edit - I found there is a compiler.xml file, and I found I can delete the file from the "excludeFromCompile" section, but still, there must be a menu item somewhere to do this.

like image 875
mattsh Avatar asked Oct 29 '11 01:10

mattsh


People also ask

How do I add excluded files in IntelliJ?

add files to exclude... right click directory > mark directory as excluded... If you want to add or remove files from that directory reverse the process... cancel exclusion on the directory, get/put files...

What are excluded folders in IntelliJ?

Excluded folders (shown as rootExcluded) are ones that IntelliJ IDEA "partially ignores". Very limited coding assistance is provided for files in excluded folders. Classes contained in excluded folders don't appear in code completion suggestion lists, references to such classes are shown in the editor as unresolved.

What is exclude file?

If you exclude a file from a Web Site project (not Web Application), Visual Studio will simply add the . exclude extension to that file. If you remove the extension, that file will be included again. It's up to you if you still need those files or not.


2 Answers

Settings | Compiler | Excludes.

like image 93
CrazyCoder Avatar answered Oct 17 '22 13:10

CrazyCoder


For Intellij 14.0 on Windows, undo excludes from compilation

File -> Settings

Then inside Settings -> Build, Execution, Deployment -> Compiler -> Excludes

or just search for "excludes" to find it.

like image 10
peter_pilgrim Avatar answered Oct 17 '22 11:10

peter_pilgrim