Is it possible to run scripts on files like Photoshop ?

Hi everybody,

I've a question. In my phpstorm, I would love to be able to execute something "simple".

In Photoshop, you can create "scripts" you can execute on a lot images. I would love to do the same on my dev files.

Like Auto-Indent function when I import an all project. It's not the most funny things to do when I get one to open each files and do it with my hand foreach one.

Is it already possible or would it need a feature request ?

Thanks in advance

6 comments
Comment actions Permalink

Hi,

If you want to reformat a bunch of files, you can do it for any directory in your project (context menu on folder node in Project view). What else would you like to execute?

Kirill

0
Comment actions Permalink

Hi,

That's my main problem. I don't remember what else was asked before by one of my team's member.

I don't find in contextual menu how to reformat a bunch of files on the folder node :s

0
Comment actions Permalink

Apologies, I wasn't completely precise :(

What you need to do is to select a folder in Project view and invoke Reformat code action (Ctrl+Alt+L on Windows, Cmd+Alt+L on Mac): http://clip2net.com/s/2IiA6. Then choose 'All files in directory' option.

Kirill

0
Comment actions Permalink

Eyh ok, that's great^^

But just, can we have it in a shortlink in the contextual menu or have we systematically to pass by menu > code > reformat ?

Thanks for your help :)

0
Comment actions Permalink

Wooo^^ Thank you very much !!!

0

Please sign in to leave a comment.