设置Pycharm为暗色皮肤主题
File -> Settings -> Appearance&Behavior -> Appearance -> Theme -> 选择“Darcula”,size选择“16”,如下图所示:
设置编辑器“颜色、字号、字体”
File -> Settings -> Editor -> Colors & Fonts ->Font -> Scheme name -> 选择“Darcula” 说明:先选择“Darcula”,再“Save As”一份,因为默认的主题是“只读的”,一些字体大小颜色什么的都不能修改,拷贝一份后方可修改!再修改为喜欢的字体、字号。
设置控制台“主题、字体、字号”
File -> Settings -> Editor -> Colors & Fonts -> Console Font -> Scheme 同样需先另存为再更改
设置注释字体颜色
File -> Settings -> Editor -> Colors & Fonts -> Python -> Keyword argument 在暗色主题下为深紫色,看不清,改为浅紫,其他也可修改为自己喜欢的颜色。
显示行号
File -> Settings -> Editor -> General -> Appearance -> 勾选“Show line numbers”,如下图所示:
设置代码模板
File -> Settings -> Editor -> File and Code Templates -> Python Script 新增编码规则 # coding=utf-8