I would like to know if there is a way (programmatically) to check if a code is running within Eclipse, IntelliJ, any other editor or running from the command line (console).
I was thinking to use System.getProperty() but is there any property that indicate this?