In IntelliJ IDEA 14, we can create scratch files from Tools > New Scratch File...
Are they stored in some temporary files? If the answer is yes, where are they?
Attempts:
1) I pressed right click > Copy Reference and I pasted it:
1d0b26a2/scratch.2:1
2) I opened .idea\workspace.xml and I have the following part for scratch files:
<file leaf-file-name="scratch.2" pinned="false" current-in-tab="true">
<entry file="scratchpad://1d0b26a2/scratch.2">
<provider selected="true" editor-type-id="text-editor">
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="636">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="20" />
<folding />
</state>
</provider>
</entry>
</file>
For a normal file the entry path starts with file://
instead of scratchpad://
.
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: