Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans macro command for /* */ comment block

I am using Netbeans 6.8 and trying to create a custom PHP comment code block macro with the /* */ style and not the usual double slash.

So far with googling and asking in PHPUGPH, I got this macro code (tools->options->editor->macros):

copy-to-clipboard delete-previous "/*" paste-from-clipboard "*/" 

You must first highlight the code and press the shortcut key combination to make a comment block.

My problem now is I don't know the macro code to uncomment a PHP block. I found some code but I can't make it work.

like image 347
marknt15 Avatar asked Jan 25 '10 10:01

marknt15


1 Answers

I know this is old (a little over a year), but I found this while looking for useful macros for netbeans and noticed it was still unanswered. I've figured out a solution if you're still interested. I know I'll be using it from now on, thanks for the idea :)

selection-forward
selection-forward
copy-to-clipboard
remove-line
paste-from-clipboard
delete-previous
delete-previous
insert-break

Edit: BTW, I'm using 7.0.1, but I believe this should still work in 6.8

like image 159
mseancole Avatar answered Sep 30 '22 04:09

mseancole