在IntelliJ IDEA 14中,我们可以从“ 工具”>“新建暂存文件”中创建暂存文件。
它们存储在一些临时文件中吗?如果答案是肯定的,他们在哪里?
尝试次数:
1)我按右键单击>复制参考,然后将其粘贴: 1d0b26a2 / scratch.2:1 2)我打开了.idea \ workspace.xml,其中有以下部分用于暂存文件:
1d0b26a2 / scratch.2:1
<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>
对于普通文件,输入路径以开头,file://而不是scratchpad://。