Advanced new file equivalent?

Is there a plugin or feature for PS that is equivalent of Advanced New File for SublimeText?

Basically its a shortcut, that triggers an input box to appear, and you can type in the path eg: `myproject/newfolder/newfile.php` you want to create.

It will create the file and folder if it doesn't exist.

Super helpful. We don't have to keep navigating to folders to create new files.

1
2 comments

Hi there,

>Basically its a shortcut, that triggers an input box to appear, and you can type in the path eg: `myproject/newfolder/newfile.php` you want to create.

>It will create the file and folder if it doesn't exist.

Well... "File | New... | File" allows to create folders.

NOTES:

  • Keep in mind that all paths will be relative to the current context (folder) -- if invoked while focus is in Editor then new file will be created relative to the currently opened file.
  • On some keymaps (e.g. Default) "File | New..." has the same shortcut as "Code | Generate..." and when invoked by shortcut the appropriate action gets selected based on context (it will be "Code | Generate..." if invoked from Editor). So you will need to set unique shortcut to "File | New..." in such case -- to be able to invoke this action from any location (unless you happy to access it through menu)
1

Ah, I see. Didn't realise I could use path syntax with File New.

Had to always create the Directories first. This is helpful. Thanks!

0

Please sign in to leave a comment.