当前位置:网站首页>pychrm的这些配置,你都知道吗?
pychrm的这些配置,你都知道吗?
2022-06-25 16:05:00 【小梧敲代码】
前言
对于一枚pycharm工具的使用新手,正确了解这门工具的配置,在使用过程中遇到的很多问题也可以迎刃而解哦!!
提供一下配置手段:
1、字体大小调整
2、显示你需要的工具窗口,比如终端命令行
3、常用一些快捷键
4、设置代码模板
5、更换默认的用例运行库
1、字体大小调整
pycharm在安装后,默认的字体很小,为了方便编写代码,都会调的大一些。
调整方式:
Windows: File - Settings - Editor - Font
Mac: Pycharm - Preferences - Editor - Font
2、显示你需要的工具窗口-终端/工程结构…
我们在使用编辑工具的时候,有时候会不小心把工具窗口给关掉了,不知道如何找回来?
或者,希望显示其它的工具窗口,比如在pycharm当中显示终端命令行。
设置路径 : View - Tool Windows - 选择你要显示的工具名称
3、常用的一些快捷键
- 注释(取消注释)选择的行:ctrl + /
2)缩进/取消缩进选择的行: shift + Tab
3)在下方新建行并移到新行行首:Shift + Enter
- 查看选中函数/类的源码:ctrl + B
更多的快捷键使用可在网上搜索。也可以在pycharm的快捷键说明中查找:
查看路径 : Help - Keymap Reference
4、设置代码模板
在pycharm当中创建某些文件时,可以设置模板。
比如,创建python文件 ,在头部自带 作者/时间/文件名称等信息。
创建unittest文件,生成unittest用例模板。
配置路径:
windows: Settings - Editor - File and Code Templates
Mac: Preferences - Editor - File and Code Templates
5、更换默认的用例运行测试库
python有多个测试库可以用来编写测试用例,比如unittest,pytest等。。
默认的用例运行库一般都是unittest,如果想以pytest或其它的库来运行测试用例,可以通过设置来更换。
设置路径 :
windows: Settings - Tools - Python Integrated Tools
Mac: Preferences - Tools - Python Integrated Tools
ps大家需要可以点点关注,方便查看哦~
最后感谢每一个认真阅读我文章的人,下面这个网盘链接也是我费了几天时间整理的非常全面的,希望也能帮助到有需要的你!

这些资料,对于想转行做【软件测试】的朋友来说应该是最全面最完整的备战仓库,这个仓库也陪伴我走过了最艰难的路程,希望也能帮助到你!凡事要趁早,特别是技术行业,一定要提升技术功底。希望对大家有所帮助……
如果你不想一个人野蛮生长,找不到系统的资料,问题得不到帮助,坚持几天便放弃的感受的话,可以点击下方小卡片加入我们群,大家可以一起讨论交流,里面会有各种软件测试资料和技术交流。
| 点击文末小卡片领取 |
敲字不易,如果此文章对你有帮助的话,点个赞收个藏来个关注,给作者一个鼓励。也方便你下次能够快速查找。
自学推荐B站视频:
零基础转行软件测试:25天从零基础转行到入职软件测试岗,今天学完,明天就业。【包括功能/接口/自动化/python自动化测试/性能/测试开发】
边栏推荐
- The first day of reading mysql45
- Blue Bridge Cup - practice system login
- DDD概念复杂难懂,实际落地如何设计代码实现模型?
- This latest research has revealed two secrets of cloudy development
- 10款超牛Vim插件,爱不释手了
- Understand the execution sequence of try catch finally in one diagram
- 数据存储和传输文件之XML使用和解析详解
- File operation, serialization, recursive copy
- Xinlou: Huawei's seven-year building journey of sports health
- DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection翻译
猜你喜欢

Day_ fourteen

Blue Bridge Cup - practice system login

Record learning of hystrix knowledge --20210929

Unity技术手册 - 生命周期旋转RotationOverLifetime-速度旋转RotationBySpeed-外力ExternalForces

This latest research has revealed two secrets of cloudy development

Overall MySQL architecture and statement execution process

Multiple decorators decorate a function

GO语言-什么是临界资源安全问题?

Stop "outsourcing" Ai models! The latest research finds that some "back doors" that undermine the security of machine learning models cannot be detected

Lifeifei's team applied vit to the robot, increased the maximum speed of planning reasoning by 512 times, and also cued hekaiming's MAE
随机推荐
【蓝桥杯集训100题】scratch指令移动 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第14题
[untitled]
Unity技术手册 - 干扰/噪音/杂波(Noise)子模块
有哪些新手程序员不知道的小技巧?
Bombard the headquarters. Don't let a UI framework destroy you
leetcode-8. String to integer (ATOI)
Dino: Detr with improved detecting anchor boxes for end to end object detection
10 Super VIM plug-ins, I can't put them down
使用hbuilder X创建uniapp项目
Function and implementation of closures
error Parsing error: Unexpected reserved word ‘await‘.
Reverse series to obtain any wechat applet code
Preliminary understanding of JVM
Mysql database multi table query
One minute to familiarize yourself with the meaning of all fluent question marks
Day_ 18 hash table, generic
cmd。。。。。。
1-8Vmware中的文件共享
Flutter textfield setting can input multiple lines
赫尔辛基交通安全改善项目部署Velodyne Lidar智能基础设施解决方案