

Line 2 is shown as block-commented, but line 3 (the hidden/elided text) is not shown, and line number 3 is gone from the line numbering panel, as well. I expect to see both of the If statement lines (lines 2 and 3) block-commented.

create a simple four-line Python file as per the attached screenshot. Python comment multiple lines shortcut In the default Colab keyboard.The previously-hidden line numbers are gone from the line number panel and seem unrecoverable without reloading the file. Then, if you right-click on the first selected line and select "Block Comment", the first selected line and all the hidden lines become block commented, but the line numbering is now corrupt. Once collapsed, you can select the entire hidden chunk by selecting the first line of the hidden text and drag-selecting to the beginning of the next non-hidden line. While editing Python code, you can collapse/hide chunks of nested text (like in an If or Else statement) by clicking on the little red "minus" symbol to the right of the line number.
