Possible to create a new file without saving?

I love using PhpStorm but the one thing that drives me crazy is the inability to create a blank file that doesn't have to be saved initially.  Essentially a scrap file for making quick edits, code mods or comparisons.

Am I missing something?  Is it possible to create a blank file without saving?  It really would be a HUGE timesaver rather than having to keep a copy of Notepad++ ready to open for these types of situations.

I did look at the Scratch plugin but can't seem to get it to work for whatever reason.

Your help, ideas, assistance... all is appreciated.


Comment actions Permalink


Try installing Scratch plugin from plugin repository (Settings|Plugins|Available)

Comment actions Permalink

As far as I've checked some weeks ago it was not compatible with PhpStorm platform :( One has to ask it's author to fix.

Comment actions Permalink

I couldn't get Scratch to work either.

Just to put this out there, it may not be an elegant solution but it works decently.

What I did was create a few empty files (empty_css.css, empty_js.js, empty_html.html, empty_php.php) and put them on my desktop.  Then, if you need a scratch file you can simply drag the file icon from your desktop to the editor.  Once you're done, empty it back out and you'll always have a scratch file ready to use.


Please sign in to leave a comment.