You can create a scratch file by going to "Tools" -> "New Scratch File..." This presents you with the "New Scratch" dialog If you are a fan of keyboard short cuts, the default for this is Ctrl+Alt+Shift+Insert. This key combination can be modified by going to "File" -> "Settings" ->...
I upgraded my IntelliJ IDEA to 14.1 and I found the scratch files. If you create a scratch file, its path can be found in many different ways: On the title bar Right click on the tab > Copy Reference You can paste it anywhere and it will look like:...
intellij-idea,ide,intellij-14,scratch-file
This was previously not possible, but is now supported for some languages. such as Java and Ruby. For these languages, you should be able to run the scratch file in the same way as you run any other file.