Search code examples
pycharm

PyCharm vertical edit: Looking for Visual Studio equivalent of Alt key for selecting multiple lines


In Visual Studio, we can hold down the Alt key and select multiple lines together...

e.g: here I am changing the indentation of 3 lines together:

enter image description here

How can I do the same in PyCharm?


Solution

  • There is a documentation on their website you can find that here

    https://blog.jetbrains.com/pycharm/2014/09/feature-spotlight-multiple-selections-in-pycharm/

    If you are using a windows machine, it may work with alt or shift

    In case of MAC it works with option key