Forum Discussion

TestCoeUs1337's avatar
Occasional Contributor
4 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?


5 Replies

  • Humashankar's avatar
    Champion Level 2

    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
      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 version

      • rraghvani's avatar
        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.