如何从IDLE的几行中删除制表符缩进? [英] How to remove tab indent from several lines in IDLE?

查看:324
本文介绍了如何从IDLE的几行中删除制表符缩进?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果要缩进Python IDLE中的几行,只需标记这些行并单击Tab.但是,如果要从几行中删除缩进该怎么办? Shift + Tab不适用于IDLE.

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 that in IDLE.

推荐答案

如果您使用的是IDLE,并且挪威键盘使Ctrl- [成为问题,则可以更改键.

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

  1. 转到选项->配置IDLE.
  2. 单击密钥"选项卡.
  3. 如有必要,请单击另存为新的自定义密钥集.
  4. 设置好自定义键后,在列表中找到凹陷区域".
  5. 点击获取新的密钥以供选择.

我尝试放入shift-Tab键,效果很好.

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

这篇关于如何从IDLE的几行中删除制表符缩进?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆