欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【pycharm】pycharm设置调优

程序员文章站 2022-03-03 19:44:01
...

设置编辑区字号字体行距

Settings > Editor > Font

显示行号

Settings > Editor > General -> Appearance -> 勾选 Show line numbers

设置python代码模板

一般我们会在代码开始设置编码,即

# coding = utf-8

Settings > Editor > File and Code Templates > Python Script
在空白区输入 # coding = utf-8

去掉拼写检查、PEP8检查等波浪线提示

刚安装的pycharm会默认进行英文单词拼写检查、pep8代码规范检查等一系列检查,并会在检查不通过的代码下加下划线,看起来很烦,可以在pycharm的右下角点击小人头 > 选择Configure inspections,可以在设置里取消掉pep8的两项检查、spelling检查等。

修改编码为utf-8

Settings > Editor > File Encodings:设置Global Encoding、Project Encoding以及Default encoding for properties files的编码为 utf-8

待补充。。。