Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open a new scratch file in PyCharm?

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.

like image 532
PythonLover Avatar asked May 21 '15 01:05

PythonLover


People also ask

How do I open a scratch file?

In the Project tool window, open the Scratches and Consoles | Scratches. Right-click a scratch file or buffer and then click Change Language. Select the desired language. You can start typing the name of the language to narrow down the list.

What is a new scratch file?

A scratch file is a temporary computer file which you use as a work area or as a store while a program is operating. [computing] COBUILD Advanced English Dictionary. Copyright © HarperCollins Publishers.

Where are all the files stored in scratch?

The scratch files are saved along with all preferences in a path specific to each version of your editor. In case of MacOS it's ~/Library/Preferences/PhpStorm2018. 2 . This means that when you update your IDE, it starts using the new path and it doesn't see your old scratches anymore.


2 Answers

You can find any PyCharm command with Help/Find Action menu! It is really useful. enter image description here

like image 71
Pavel Radchenko Avatar answered Sep 29 '22 14:09

Pavel Radchenko


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

like image 43
Andy Avatar answered Sep 29 '22 14:09

Andy