adm*_*rew -2 comments qtp hp-uft
如何通过我的操作的编辑器视图在我的代码中添加注释?我知道这是一个简单的问题,但我无法弄清楚,这对谷歌来说几乎是不可能的.
我已经尝试了一些标准的评论类型,其中没有一个有效:
///* */#--我知道我可以为Action的Description属性添加文本,但我希望能够根据需要在代码中注释掉特定的行.
你的意思是专家视图,你在哪里看到生成的代码?
您可以使用单引号字符:
' The user needs to be informed that the test is ready to run, so
' he can take appropriate actions before continue or Cancel if needed.
If MsgBox("The test is ready to start.", VbOKCancel) <> VbOK then
ExitTest
End If
Run Code Online (Sandbox Code Playgroud)
注释/取消注释块的快捷方式:Ctrl + M和Ctrl + Shift + M.