ROM*_*eer 28 intellij-idea intellij-14 scratch-file
在IntelliJ IDEA 14中,我们可以从Tools> New Scratch File创建临时文件...
它们存储在一些临时文件中吗?如果答案是肯定的,那么它们在哪里?
尝试:
1)我按下右键>复制参考并粘贴它:
1d0b26a2/scratch.2:1
2)我打开了.idea\workspace.xml,我有以下部分用于临时文件:
<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>
Run Code Online (Sandbox Code Playgroud)
对于普通文件,输入路径以file://
而不是scratchpad://
.
Unc*_*ter 30
从14.1开始,.IntellijIdea14/config/scratches
存储在选项卡下.IntellijIdea14/config/scratches
并显示在.IntellijIdea14/config/scratches
:
ROM*_*eer 12
我将IntelliJ IDEA升级到14.1,然后找到了临时文件.
如果创建临时文件,则可以通过多种不同方式找到其路径:
在标题栏上
右键单击选项卡> 复制参考
您可以将它粘贴到任何地方,它看起来像:
C:/Users/username/.IntelliJIdea14/config/scratches/scratch
右键单击选项卡>重命名文件...
右键单击选项卡>本地历史记录>显示历史记录
在.idea\workspace.xml中,它看起来像:
<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>
Run Code Online (Sandbox Code Playgroud) 归档时间: |
|
查看次数: |
9382 次 |
最近记录: |