
上QQ阅读APP看书,第一时间看更新
1.2.3 配置基本IDLE
可以对IDLE做一些基本配置,使IDLE更加容易使用,可以设置字体、语法高亮和快捷键等选项。在IDLE中,选择“Options”→“Configure IDLE”菜单命令,如图1-19所示,弹出“Settings”对话框。

图1-19 IDLE的“Options”菜单
1.“Fonts/Tabs”(字体/Tab键)选项卡
“Settings”对话框的“Fonts/Tabs”选项卡如图1-20所示。
1)Font Face(字体):建议选择Consolas等宽字体,因为等宽字体很容易辨识数字0和大写字母O,数字1和字母l(L的小写字母)、I(i的大写字母),视觉效果好。
2)Size(字号):默认为10,可自行调节字号。
3)Indentation Width(缩进):默认为4个空格。单击“Ok”或“Apply”按钮会立即生效。
2.“Highlights”(高亮)选项卡
“Settings”对话框的“Highlights”选项卡如图1-21所示。在本选项卡中设置文字高亮外观,一般采用系统默认设置。

图1-20 “Fonts/Tabs”选项卡

图1-21 “Highlights”选项卡
其他选项卡初学者用得很少,因此不用更改。