用于/* */注释块的Netbeans宏命令 [英] Netbeans macro command for /* */ comment block

查看:76
本文介绍了用于/* */注释块的Netbeans宏命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Netbeans 6.8,并尝试使用/* */样式而不是通常的双斜杠创建自定义PHP注释代码块宏.

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.

到目前为止,在Google搜索和使用PHPUGPH进行询问时,我得到了以下宏代码(工具->选项->编辑器->宏):

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.

我现在的问题是我不知道要取消注释PHP块的宏代码. 我找到了一些代码,但无法正常工作.

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.

推荐答案

此宏对我有用(类似于dreamweaver php块注释).

this macro worked for me (similar to dreamweaver php block comment).

添加到选项>编辑器>宏

added to options > editor > macros

cut-to-clipboard "<?php /*" paste-from-clipboard "*/ ?>" 

我将键盘快捷键设置为shift + option + cmd + c(mac)

i set the keyboard shortcut to shift+option+cmd+c (mac)

这篇关于用于/* */注释块的Netbeans宏命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆