againniom.blogg.se

Notepad++ python comment block
Notepad++ python comment block




notepad++ python comment block

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.

  • Right-click on the selected If statement and select 'Block Comment'.
  • select the If statement and all hidden text by dragging to the beginning of the exposed pass statement If you want to comment lines with the same pattern in multiple files you should open all the files in notepad++ and click Replace All in All Opened. This also provides helpful features for creating and editing comment blocks, even if Doxygen isnt desired.
  • and even Notepad++ all have built-in shortcuts for block commenting in Python.

    notepad++ python comment block

    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.






    Notepad++ python comment block