I am using a scratch file for some Kotlin work.
I accidentally created an endless loop in one of my functions and ran the file, so Intellij is not responding.
There is no button for stopping the execution of the scratch file and even if there were, that wouldn't work because Intellij is not responding to mouse clicks.
How do I force stop or restart Intellij in this case?
Already good answers are given above.
Another great way to find IntelliJ
PID
is to usehtop
command on Linux.htop
with the command:sudo apt install htop
htop
in terminalPID
is associated with each process includingIntelliJ
.kill -9 <pid_of_intellij>
tokill
theIntelliJ
process.