1

The shortcut for toggling comment on entire function that works for Javascript does not work in Python.

Is there some way to achieve equivalent functionality for Python?

1 Answer 1

0

Here's one way:

enter image description here

  1. Fold ( + + [) (https://stackoverflow.com/questions/30067767/how-do-i-collapse-sections-of-code-in-visual-studio-code-for-windows)

enter image description here

  1. Select line down (Shift + )

enter image description here

  1. Toggle Line Comment ( + /).

enter image description here

and then you're done. (The function is even unfolded automatically because it is commented out.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .