Open a new scratch file in PyCharm?

PythonLover picture PythonLover · May 21, 2015 · Viewed 7.8k times · Source

In PyCharm 4.5, one of the new features is listed as "Temporary Python Scratch Files". How do I create these?

I've searched through the "New" menu and haven't been able to find it. When I select "New...", I am given the option to create permanent files.

Answer

Andy picture Andy · May 21, 2015

You can create a scratch file by going to "Tools" -> "New Scratch File..."

New Scratch File Menu Option

This presents you with the "New Scratch" dialog

New Scratch File Dialog

If you are a fan of keyboard short cuts, the default for this is Ctrl+Alt+Shift+Insert.

This key combination can be modified by going to "File" -> "Settings" -> "Keymap" and searching for "Scratch"

Modify Scratch pad keyboard shortcut