Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make IntellijIDEA ignore work-in-progress class files?

When I'm working in IntellijIDEA how do I tell it to ignore a class file that may have problems and I want to leave dormant for a while?

It will throw errors when I compile whatever class I am working on until I fix the first "dormant" class.

I have tried adding my class to a bogus package but Intellij doesn't like that either because the path doesn't match.

IntellijIDEA

like image 450
Gary Avatar asked Feb 09 '13 23:02

Gary


People also ask

How do I ignore .class files in IntelliJ?

1 Answer. Show activity on this post. deselect "Class" and they should not appear anymore.

How do I fix read only files in IntelliJ?

To toggle read-only attribute of a file, open file in the editor, or select it in the Project tool window. Do one of the following: On the main menu, choose File | File Properties | Make File Read-Only , or Make File Writable .

How do I recompile a class file in IntelliJ?

Open the needed file in the editor and from the main menu, select Build | Recompile 'class name' ( Ctrl+Shift+F9 ). Alternatively, in the Project tool window, right-click the class you need and from the context menu, select Recompile 'class name'.


3 Answers

Settings | Compiler | Excludes, add your WIP files there:

exclude

like image 186
CrazyCoder Avatar answered Oct 08 '22 07:10

CrazyCoder


You could use Refactor -> Rename File..., and change the file extension.

like image 4
Werner Kvalem Vesterås Avatar answered Oct 08 '22 06:10

Werner Kvalem Vesterås


That is set at the inspection level

Configure Current File Analysis CTRL + SHIFT + ALT + H

I have profiles with differing inspection levels setup loosely based on the phase of my project builds ... I'd suggest taking a look at Customizing Inspection Profiles.

enter image description here

To ignore specific files during compilation you can add files individually or recursively in via the project settings panel ...

Configure Compiler Analysis CTRL + ALT + S :: Compiler => Validation

enter image description here

like image 3
Edward J Beckett Avatar answered Oct 08 '22 07:10

Edward J Beckett