Where are IntelliJ scratch files located?
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:
C:/Users/username/.IntelliJIdea14/config/scratches/scratch
Right click on the tab > Rename File...
Right click on the tab > Local History > Show History
In .idea\workspace.xml it looks like:
<file leaf-file-name="scratch" pinned="false" current-in-tab="false"> <entry file="file://$APPLICATION_CONFIG_DIR$/scratches/scratch"> <provider selected="true" editor-type-id="text-editor"> <state vertical-scroll-proportion="0.0"> <caret line="4" column="17" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" /> <folding /> </state> </provider> </entry> </file>
You can switch to project view and you'll be able to see them under "Scratches and consoles"
Starting with 14.1, Scratch Files are stored under .IntellijIdea14/config/scratches
.
They are displayed either in Scratches and Consoles or on the Scratches tab (depends on the version you are using).
Current UI:
Earlier UI:
IntelliJ IDEA Help - Scratch files