请关注一下,注释一段代码的快捷键!!!

解决方案 »

  1.   

    先谢谢了。
    to shilong(星矢の诗龙)
       直接手工注释麻烦了点吧???
       如java,pb中均有快捷方式。to zfive5(最码)
       请问,能否说的详细点???
      

  2.   

    http://www.swm.com.cn/yingyong/yy-00-06/yy04.htm
      

  3.   

    tools --> Macro  --> Macro Name: AddComment,Edit -->
    编辑AddComment,输入:
    Sub AddComment()
    ActiveDocument.Selection.ReplaceText "^","//",dsMatchRegExp
    ActiveDocument.Selection.ReplaceText "^////","",dsMatchRegExp
    End Sub  存盘后,tools -->Customize-->Keyboard页-->Category 选择 Macros,Commands 选择AddComment,然后和Ctrl+/关联。这样选中一段代码后可以给每一行添加或去除//
    ,效果和Jbuilder一样
      

  4.   

    Tools->Customize->Keyboard->(Category)Macros->(Commands)CommentOut
    设置好就OK了!
      

  5.   

    Macros里面没有CommentOut函数吧,你装了什么插件?
      

  6.   

    CommentOut我也用过记住自定义时要选  All Command