PHPEdit.net Community
   
1 2 3 4
Tutorials Tips Pasties Code Snippets
 

Home > Tips > Using Actions to Increase Productivity

Using Actions to Increase Productivity

Created by ltp, last update on 28/02/2008 10:52

Actions make PHPEdit extremely customizable. You can create actions that are calling PHPEdit commands. You ever think of when you want to save a file and have code beautifier cycle through it, upload it through FTP or commit it to subversion/svn?

Actions make this possible. If you are finding yourself doing operations consistently that could be automated in some aspect Actions are for you.

To get started, you need to know a little about the PHPEdit commands. Navigate to Tools -> Script Command Editor. Here you can right click and create a custom script that later you can add as an action.

My script looks like this:
CodeBeautifierExecute
FileSave
FTPPublishActiveDocument

What this does is allow me to execute code beautifier, save the file and bring up the dialog to publish to FTP.

The next step is to go to Tools -> Edit Preferences. Navigate to Graphical user interface -> Actions. Click New Action. Add your script into the Script section. Give it a caption and category. Then bind it to a shortcut (I gave this one Ctrl + Alt + P). You can also give it certain Contexts to run in by setting specific types of documents to run on, etc.

I hope this quick tip gave you ideas for creating your own actions that produce more efficient productivity!

By logging in you will be able to:

  • Recommand this page to someone else
  • Monitor changes on this item
  • Rate this item
  • Post comments
Login now!

 
PHPEdit User Community, © 2008 WaterProof SARL
Powered by PHPEdit