Closed patrickmaciel closed 13 years ago
To manage the keyboard shortcuts that trigger Zen Conding actions, you need to go to menu Tools > Options > Keymap. You are able to edit Zen Coding shortcuts searching for their menu item name in a window like this: http://netbeans.org/images_www/articles/68/java/editor-codereference/keyboard.png
Instead, if you need to change the text you have to type to trigger shortcuts (for example, html:4t fot the HTML 4 Transitional template, etc), you cannot do it, because that commands are hardcoded in the Zen Coding original library I use in my plugin.
Let me know.
yes, okay. but not just change the pre-defined shortcuts, what I want most is to add new shortcuts, for example:
shortcut: pfield code:
<p>
<label for="{for}"> $ {label} </ label>
<input type="${tipo}" name="${name}" id="${id}" class="${class}" />
</ p>
or in the case, something more specific, like a template of a class (CodeIgniter PHP) shortcut: cicontrol code:
class $ {name}_Controller extends _CI {
function __construct
/ / TO-DO
}
function index () {
$ {cursor}
}
}
It's possible?
It's possible using NetBeans code templates. http://blogs.oracle.com/netbeansphp/entry/code_templates_in_netbeans_php http://netbeans.org/kb/docs/php/code-templates.html
You don't need Zen Coding to do this.
Yes, but in this case. Because I used the Zen Coding in Eclipse, Aptana, and Notepad + + to generate these codes for me.
But that's okay. Anyway, thank you. And the plugin is of excellent quality, and updated as soon as the Zen-0.7 coding in Eclipse PDT.
Excellent work. Have a nice day.
And sorry for my english, I'm Brazilian and I'm not 'practice', then it is a mixture of my 'little knowledge' with 'google translate' haha
I'm sure Eclipse can do it in a similar way (Google it), and so Aptana does it too. I'm uncertain about Notepad++.
Thank you for your appreciation.
No problem with your english, it's ok. I'm italian.
Hi. I didn't t find the place to manage the shortcuts. I want to add and change some others, as I do in eclipse + zen coding.
It's possible?