How to remove tab indent from several lines in IDLE?

前端 未结 8 1437
长发绾君心
长发绾君心 2021-01-30 13:04

If you want to indent several lines in Python IDLE you just mark the lines and hit Tab. But what if you want to remove the indent from several lines? Shift+Tab does not work for

相关标签:
8条回答
  • 2021-01-30 13:51

    In Jupyter Notebook,

     SHIFT+ TAB(to move left) and TAB(to move right) movement is perfectly working.
    
    0 讨论(0)
  • 2021-01-30 13:54

    If you're using IDLE, and the Norwegian keyboard makes Ctrl-[ a problem, you can change the key.

    1. Go Options->Configure IDLE.
    2. Click the Keys tab.
    3. If necessary, click Save as New Custom Key Set.
    4. With your custom key set, find "dedent-region" in the list.
    5. Click Get New Keys for Selection.
    6. etc

    I tried putting in shift-Tab and that worked nicely.

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