网站首页 > 开源技术 正文
首先我习惯用python4.0.4版本,就说一下这个版本吧,其他版本类似。
经过以下配置,用起来会比较舒服些。
一、配置黑色屏及字体
1>settings--Editor--Colors&Fonts
- 选择Darcula,点击【Save As】,另存为Darcula copy ,点击【ok】
2>settings--Editor--Colors&Fonts--Font,在Editor Font--Show only monospaced fonts下
Primary font:选择Source Code Pro
- Size:填写15
- Line spacing:填写1.1
- 点击【OK】
二、pycharm 永久显示行号
永久设置。File --> Settings -->Editor -->General -->Appearance , 之后勾选Show Line Numbers。
三、配置自动添加文件头
File --> Settings -->Editor -->File and code Templates -->Python Script
添加 如下代码:
# -*- coding:utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : jack
# @File : ${NAME}.py
添加py文件时,则自动添加如下信息:
# -*- coding:utf-8 -*-
# @Time : 2019/4/22 11:02
# @Author : jack
# @File : Atdata.py
四、实用快捷键
1> 进入函数:按住Ctrl鼠标左键点击函数
返回函数:按住Ctrl+Alt+左箭头
2> 查找程序中哪些地方用了函数或变量
在函数或变量上点击右键-->Find Usages(Alt+F7)
五、PyCharm4 代码自动补全
1> file-->power save mode-->把?去掉,关掉这个省电模式
猜你喜欢
- 2024-10-20 540万美元!“互联网之父”万维网源代码NFT拍出天价
- 2024-10-20 自动化软件测试工具Parasoft内置测试配置有多强大?
- 2024-10-20 VS code 你们都在用吗?或许你们需要看一下(基础)篇
- 2024-10-20 python logging 随记(python loge)
- 2024-10-20 「杂谈」IT民工喜欢争论的话题,你有没有中枪
- 2024-10-20 在网页上实现桌面端的PropertyGrid效果
- 2024-10-20 万字长文把 VSCode 打造成 C++ 开发利器,解决你的多重开发需求
- 2024-10-20 如何快乐的写代码,让Visual Studio Code更加赏心悦目,主题+字体
- 2024-10-20 享受编码的乐趣,是时候找寻一款属于你的编程字体了
- 2024-10-20 编程字体分享!让编程也充满艺术配色
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- jdk (81)
- putty (66)
- rufus (78)
- 内网穿透 (89)
- okhttp (70)
- powertoys (74)
- windowsterminal (81)
- netcat (65)
- ghostscript (65)
- veracrypt (65)
- asp.netcore (70)
- wrk (67)
- aspose.words (80)
- itk (80)
- ajaxfileupload.js (66)
- sqlhelper (67)
- express.js (67)
- phpmailer (67)
- xjar (70)
- redisclient (78)
- wakeonlan (66)
- tinygo (85)
- startbbs (72)
- webftp (82)
- vsvim (79)
本文暂时没有评论,来添加一个吧(●'◡'●)