I am new to IntelliJ, I started using it because it streamlines java coding stuff.
I am currently a student so my main java folder is not a complete project but a collection of different individual java programs like a program for testing ArrayList functionalities, or a specific leet code problem. I have one java folder and many different subfolders depending upon the content.
When I open my java folder with IntelliJ and run one of the files it tries to compile all the java files in the java folder, and I don't want it to do that. How do I configure IntelliJ such that it treats all files within my java folders as individual files and complies only the ones that I want to compile, like blueJ for example?
Note: I have searched for this question but found mostly outdated answers or answers that don't work in my case. I tried the current file option from the top right drop-down but it says class "xxxx" is never used or something like that and that the file is not runnable.