pycharm

pycharm基本使用
选择环境
在设置中>Project Interpreter>show all>左下角加号

使用pycharm安装python的第三方模块
在设置中>Project Interpreter>左下角加号>输入要安装的模块

菜单字体大小设置
设置中appearance>override default fonts by

设置字体大小
设置中editor > font中设置

设置文件编码
editor>file encodings>全部设置为utf-8

修改背景颜色
editor>color Scheme>general

设置tab缩进
setting>editor>code style>python

关闭自动更新
appearance & behavior > system setings > updates

添加文件头信息
editor>file and code Templates>python script
添加如下内容
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : sunlizhao
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}

显示行号
editor > general > appearance >show line numbers

导入导出你自定义的pycharm的配置
export strrings(导出)
import strrings(导入)

常用的快捷键
ctrl + d 复制当前行
ctrl + e 删除当前行
shift + enter 快速换行
ctrl + / 快速注释
tab 缩进当前行(选中多行后批量缩进)
shift + tab 取消缩进
ctrf + f 查找
ctrl + h 替换
ctrl + (-)减号 折叠当前代码段代码
ctrl + (+)加号 展开当前代码段
ctrl + shift + 减号 折叠当前文件中的所有代码段
ctrl + shift + 加号 展开当前文件中的所有代码段



常用操作指南
复制文件路径 左侧文件列表右键选中文件>copy path
查看结构 ide左侧边栏,structure 查看当前项目结构

原文地址:https://www.cnblogs.com/sunlizhao/p/9256972.html