54

Scratch files are mentioned in the release announcement for IntelliJ 14 but it does not mention how to create or use them. Any links to documentation would be extremely helpful.

What I Have Already Tried

I have already performed several web searches for creating scratch files and the only things that have turned up are articles talking about the feature, none of which specify how to actually use the feature.

I have also tried "File"->"New...", but there is no option for scratch files.

I did find some documentation on scratch files in a PhpStorm plugin, but, despite both being JetbBrains products, that appears to be completely unrelated and none of those shortcuts work.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Rylander
  • 19,449
  • 25
  • 93
  • 144
  • 6
    Why the downvote? If you are going to downvote then give me feedback on why this question is being downvoted. – Rylander Nov 05 '14 at 17:54
  • Did you check the help? [A comment from the announcement post](http://blog.jetbrains.com/idea/2014/09/intellij-idea-14-eap-138-2210-brings-scratch-files-and-better-mercurial-integration/#comment-272310) references hotkeys in the help. – admdrew Nov 05 '14 at 17:59
  • 2
    Agree, no need to downvote this. If the answer is so obvious, why not ask in a comment if OP tried it and if/why it didn't work... +1 back to zero from me. – vikingsteve Nov 05 '14 at 21:22
  • I would downvote this for a lack of research. I've never even heard of IntelliJ, but literally two minutes of searching found [this link](https://www.jetbrains.com/idea/help/scratches.html). Just by looking at the online documentation. – Heretic Monkey Nov 05 '14 at 23:20
  • 3
    @MikeMcCaughan What did you search to find that? All I was able to find was links to release summary. – Rylander Nov 06 '14 at 00:38
  • 3
    I searched for IntelliJ and found their product page on JetBrains' web site. Then I just clicked on Support, found a link to their online documentation, and found it there. Maybe I'm old-fashioned, but I actually navigate around web sites without using search :). – Heretic Monkey Nov 06 '14 at 17:24
  • I found the scratch file without help, but I don't know how to run it. Anyone has a example scratch file and how to run/execute it? – Katedral Pillon Oct 15 '15 at 22:10
  • @KatedralPillon I believe that running scratch files is not yet supported... but it might have been added. Either way, this would be better off as a question instead of a comment. – Rylander Oct 16 '15 at 15:09

3 Answers3

72

Tip: you can find any action in the menu "Help" -> "Find Action...".

This specific action is in the menu "Tools" -> "New Scratch File...".

uwolfer
  • 4,356
  • 1
  • 25
  • 40
10

Windows/Linux: Ctrl + Alt + Shift + Insert

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
tinned_sardine
  • 941
  • 6
  • 6
9

In Mac the shortcut is: ShiftctrlN

Key map Mac OSX 10.5 : ShiftN

bric3
  • 40,072
  • 9
  • 91
  • 111
danielgpm
  • 1,609
  • 12
  • 26