Shortcut key for commenting out lines of Python code in Spyder

前端 未结 6 1622
南旧
南旧 2021-01-30 00:43

I recently changed from the Enthought Canopy Python distribution to Anaconda, which includes the Spyder IDE.

In Canopy\'s code editor, it was possible to comment and unc

6条回答
  •  清酒与你
    2021-01-30 01:26

    • Unblock multi-line comment

      Ctrl+5

    • Multi-line comment

      Ctrl+4

    NOTE: For my version of Spyder (3.1.4) if I highlighted the entire multi-line comment and used Ctrl+5 the block remained commented out. Only after highlighting a small portion of the multi-line comment did Ctrl+5 work.

提交回复
热议问题