pycharm 初初安装-常用设置
·
pycharm 初初安装-常用设置
0、下载
1、基础配置
- 背景色设置、行号显示
配置鼠标滚轮控制字体大小,上面的第二步更简单就能实现
在PyCharm中可以开启Ctrl+鼠标滚轮的缩放字体功能。具体方法如下:
File --> Setting --> Editor --> General --> 勾选Change font size (zoom) with Ctrl+Mouse Wheel
-
Pycharm如何自动换行
Settingsl -> Editorl -> General -> Use soft wraps in console -
设置护眼背景色
File->Seting->Editor-Colors->General->Text->Default text->BackGround设置为E1F4E4
2、中级配置
- 自定义快捷键
setting: keymap: find keyword- ctrl+w 关闭活动页面 :
find: close, editor->remove(alt+F4) -> add (ctrl+w) - F5 debug :
find: debug, Run.Debug->remove -> add (F5) - F10 debug(step over):
find: step , Run.Debugging Actions.Step Over->remove -> add (F10) - F11 debugstep into):
find: step , Run.Debugging Actions.Step Into->remove -> add (F11)
- ctrl+w 关闭活动页面 :
- 留空
- 留空
dsa
Pycharm中创建项目自动生成头信息
学习自 – Pycharm中创建项目自动生成头信息
设置方法:
- 打开PyCharm
- 选择
File-Settings -> Editor -> File and Code Templates -> Python Script
#!/usr/bin/python3
# -*- coding:utf-8 -*-
# @Software : ${PRODUCT_NAME}
# @CreateTime: ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}
# @Author : ${USER}
# @File : ${NAME}
import sys
import time
import pprint
import json
import re
def function():
print("in function...")
print("-=" * 90)
try:
pass
except Exception as e:
print('\n function_name{}'.format(sys._getframe().f_code.co_name))
print('Line_{:0>5d} in {} - {}'.format(sys._getframe().f_lineno, __file__, e))
finally:
pass
def main():
print("in main...")
print("-=" * 90)
function()
if __name__ == '__main__':
print("in startMain...")
print("-=" * 90)
main()
更多推荐



所有评论(0)