|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Switching from TextMateI've been trying to use netbeans for a Merb project. I really like the refactoring tools. The code hinting is also really nice for newbies (which means I should probably work on finding out how to create a code hinting for a merb project). However I miss the option to select a piece of code and call a shortcut to modify it. For instance I would select a line of code in a rhtml view and press ctrl + Z. It would wrap the line in a <%# %> block. I found how to create macros but I don't seem to be able to access the selection or modify the selection, can anyone point to me to some good documentation? Thanks, -Matt ------------------------ http://merbist.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Switching from TextMatemattetti wrote:
> I've been trying to use netbeans for a Merb project. I really like the refactoring tools. The code hinting is also really nice for newbies (which means I should probably work on finding out how to create a code hinting for a merb project). > > However I miss the option to select a piece of code and call a shortcut to modify it. For instance I would select a line of code in a rhtml view and press ctrl + Z. It would wrap the line in a <%# %> block. > > I found how to create macros but I don't seem to be able to access the selection or modify the selection, can anyone point to me to some good documentation? For this use-case follow these steps to create a macro: 1) make whatever selection, e.g. one word 2) Menu | Edit | Start Macro Recording 3) Ctrl-x (Cut) 4) Type "<%#", press Ctrl+v (paste), type "%>" 5) Menu | Edit | Stop Macro Recording 6) Set macro name and shortcut (undo the changes if you want) Now whenever you press the short cut when some text is selected it will be wrapped in <%# selected-text %>. m. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Switching from TextMateAlternatively just do ctrl-X, r, e, tab, ctrl+V
It 5 key presses, short enough for me
|
| Free embeddable forum powered by Nabble | Forum Help |