Lith
Lith

Reputation: 803

Is it possible to comment out cells in Spyder?

I am working in Spyder and was wondering if there is any way to comment out a whole block delimited by the common #%%. Consider the example below:

#%% Block 1
for i in range(10):
    print(i)
# (other stuff)

#%% Block 2 

Is it possible to comment out everything inside the Block 1 by any keybind shortcut (I'm working on Windows)?

By the way, I'm aware I can select all the lines and use Ctrl + 4 or Ctrl + 1 equivalently. I also checked this document with no success.

Thanks in advance, and sorry if this have already been asked (couldn't find any useful post myself).

Upvotes: 2

Views: 1336

Answers (1)

Carlos Cordoba
Carlos Cordoba

Reputation: 34156

(Spyder maintainer here) Unfortunately this is not possible at the moment, sorry.

Upvotes: 3

Related Questions