pycharm简单使用教程:Python模块安装/常用快捷键

一、PyChram下载
官网:http://www.jetbrains.com/pycharm

Windows:http://www.jetbrains.com/pycharm/download/#section=windows

Linux:http://www.jetbrains.com/pycharm/download/#section=linux

Mac:http://www.jetbrains.com/pycharm/download/#

二、PyChram简单使用

1.添加或者修改文件模板
File->settings->Editor->File and Code Templates->Python Script

第一行指定Python路径,当脚本在linux机器上使用时需要

第二行指定编码格式,py2里面需要,py3里面不需要指定

2. python版本管理切换
File->settings->Prgject:python->project interpreter

3. 已有文件重命名
右击要重命名的文件->refactor->rename

4. Python模块安装
File->settings->Prgject:python->project interpreter
安装、升级、卸载模块均可

5. 在PyChram中直接浏览文件目录
右击文件选择show in explorer

6.PyChram Tab键补全

字符集编码设置为UTF-8

8.PyChram字体设置

显示行号

如何调出工具栏

11 PyChram常用快捷键

1

2

3

4

5

6

7

8

9

alt+ctrl+s           # 打开设置界面

tab                # 选择要缩进的代码,按键缩进

shift+tab            # 选择要缩进的代码,按键增加

ctrl+d               # 复制本行粘贴到下一行

ctrl+?          #选择要添加注释的行,按键进行#添加或去除

双按shift         #全局搜索

ctrl+/          #注释

ctrl+F          #查找

ctrl+R          #查找替换

THE END