Google Colab: edit two lines at the same time

后端 未结 2 800
一生所求
一生所求 2021-02-13 20:27

In my local jupyter-notebook i can edit mutliple lines of code at the same time: simply press ctrl + click at the respective lines. In google Colab that does not seem to work. I

相关标签:
2条回答
  • 2021-02-13 21:06

    It's available. Instead of Ctrl + Click, please use

    • Alt + Click for Windows
    • Option + Click for MacOS

    To select all occurrences of the current selection, please use

    • Ctrl + Shift + L for Windows
    • Command + Shift + L for MacOS
    0 讨论(0)
  • 2021-02-13 21:11

    (In Linux - Chromium, at least)

    I managed to do block select but only on contiguous lines, not multi-cursor unfortunately.

    Shift+Alt + Up/Down to select multiple lines. Now you can release Alt and use Left/Right to move to the sides. Whatever you do now will affect the whole block.

    And, if you select one or more lines with Shift (doesn't need to be the whole content, this affects all the lines with cursor), and then release Shift and press Alt+Up/Down, you will move those lines altogether up/down

    0 讨论(0)
提交回复
热议问题