NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Feat. request: Assigning shortcuts to templates


Joined: 26 Sep 2006
Posts: 11
Reply with quote
Hi there!

Downloaded the trial version of NuSphere today ... among quite some others editors. The flexibility that PhpED offers is among the best. I can now finally assign most of the shortcuts the way I was used to them in my previous working environment.

One thing I am missing though, and that is assigning shortcuts to templates. There are some snippets that I use VERY frequently, and it would be very helpful to be able to create a shortcut to them.

Hope it's possible to implement this ...

Kind regards,

Robert.
View user's profileFind all posts by gvanhSend private message


Joined: 27 Mar 2006
Posts: 77
Reply with quote
I use Code Templates.

you can type this to try them out:
Code:
for[ctrl+j]


which inserts
Code:
for($i=0;$i<=;$i++){

}


Try pressing [ctrl+j] to see their preset code templates.

Build your own by going to toos->settings->Editor->Code Templates

TW
View user's profileFind all posts by twSend private message


Joined: 26 Sep 2006
Posts: 11
Reply with quote
Yeah ... I use code templates as well. For some code templates though, using <ctrl-j> just takes too long, too many actions. That was the reason for my request ... it would really help if I could add keyboard shortcuts to my specific code templates. Such as <ctrl-shift-m> to add the code I use for template-variables... which I use everywhere and very frequently.
View user's profileFind all posts by gvanhSend private message


Joined: 27 Mar 2006
Posts: 77
Reply with quote
It will only bring up a list of code templates if it finds more then one.

If I have a temlate named 'doc' that expands to:
Code:
/**
 *
 */


And another named 'doc_todo' that expands to:
Code:

/**
 * @todo
 */


Then typing doc[ctrl+j] will bring up both in a select list at the cursor with the most likely match at the top. In this case 'doc'.

But if I name "doc" as "z" then I don't have this problem since I do not have any other z's in my code templates. You could do somethign similar for templates that are the most important and save a shortcut for other commands.

z[ctrl+j] is just about as fast and a lot less finger strain Very Happy then ctrl+shift+M[/code]
View user's profileFind all posts by twSend private message
Feat. request: Assigning shortcuts to templates
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic