How to remove tab indent from several lines in IDLE?

前端 未结 8 1443
长发绾君心
长发绾君心 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:41

    By default, IDLE has it on Shift-Left Bracket. However, if you want, you can customise it to be Shift-Tab by clicking Options --> Configure IDLE --> Keys --> Use a Custom Key Set --> dedent-region --> Get New Keys for Selection

    Then you can choose whatever combination you want. (Don't forget to click apply otherwise all the settings would not get affected.)

提交回复
热议问题