Forum Discussion

TestCoeUs1337's avatar
TestCoeUs1337
Occasional Contributor
10 months ago

Commenting Out Multiple Lines in TestComplete BDD Scenarios

Hey all,

I'm working on BDD scenarios in TestComplete and noticed there's no built-in feature to comment out multiple lines at once, unlike when working on scripts. Any suggestions or workarounds to streamline this?

Thanks!

  • Humashankar's avatar
    Humashankar
    Champion Level 3

    Hi TestCoeUs1337 

    To comment out multiple lines at once in TestComplete BDD scenarios!

    Try this shortcut key:

     

    Ø  Select the lines you want to comment out by holding down the Shift key and clicking on each line.

    Ø  2. Right-click on one of the selected lines and choose "Comment Out" (or press Ctrl+Shift+C on Windows or Command+Shift+C on Mac).

     

    All selected lines will now be commented out

    This shortcut works for commenting out multiple lines in BDD scenarios, just like it performs in scripts.

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!

    Warm regards

    • TestCoeUs1337's avatar
      TestCoeUs1337
      Occasional Contributor

      thanks for your response but unfortunately this does not work.

       

      First of all, I dont have an option to choose "Comment Out" and the ctrl+shift+c does not work. Do I need to activate this option somewhere first? 

      I am using testcomplete 15.42.9.7 version

      • rraghvani's avatar
        rraghvani
        Champion Level 3

        Unfortunately, these buttons only comment out script code and not the scenario.

        I don't think it's possible to do this in TC.