Search code examples
javaintellij-ideamain-method

Intellij doesn't show run button


Intellij doesn't show run button even if that file is in src folder.

no run button

Maybe do you know what to do?

P. s. It's strange because that file used to show run button but after recloning git repository it just doesn't show any more.


Solution

  • Right click on src directory and select option Mark Directory As > Sources Root.