Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 793 Bytes

File metadata and controls

45 lines (32 loc) · 793 Bytes

pycharm相关设置

一、修改头部模板定义

1、设置PyCharm工具的编码格式:

File -->> setting -->> File Encodings -->> IDE encoding:utf-8 

2、设置模板文件编码类型:

File -->> Setting -->> File and Code Templates

在模块里顶部加入下面语句

#!/usr/bin/env python
# coding=utf-8

二、设置python标准编码风格(PEP8)

file -->> setting -->> inspections -->> PEP 8 coding style violation

三、PyCharm设置显示行号

1、临时设置。

右键单击行号处,勾选 Show Line Numbers。

2、临时设置。

View -->> Active Editor,勾选 Show Line Numbers。

3、永久设置。

File -->> Settings -->> Editor -->> Appearance ,勾选 Show Line Numbers。