Shortcut key for commenting out lines of Python code in Spyder

前端 未结 6 1600
南旧
南旧 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:34

    While the other answers got it right when it comes to add comments, in my case only the following worked.

    • Multi-line comment

      select the lines to be commented + Ctrl + 4

    • Multi-line uncomment

      select the lines to be uncommented + Ctrl + 1

提交回复
热议问题