koteletje
koteletje

Reputation: 679

Python Spyder console: selecting code and putting between parenthesis, brackets, quotes, ... (like in RStudio)

I have recently started programming a bit in Python, using Spyder as a console. A functionality I really miss - and used a lot in RStudio - is selecting code/text and then pressing parenthesis, brackets or quotes resulting in the selected code/text put between parenthesis, brackets or quotes.

E.g. select

some string

then press ", resulting in

"some string"

Can such a functionality be activated in Spyder?

Upvotes: 0

Views: 661

Answers (1)

Carlos Cordoba
Carlos Cordoba

Reputation: 34136

(Spyder maintainer here) This functionality was added in Spyder 4, so you're probably using an older version.

Upvotes: 1

Related Questions