Do you mean the expert view where you see the generated code?
You can use the single quote character for that:
' 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
Shortcut to comment/uncomment blocks: Ctrl+M and Ctrl+Shift+M
0
solved QTP/UFT – Adding comments to code in Editor view