当前位置:网站首页>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自动化测试/性能/测试开发】
边栏推荐
- Stop "outsourcing" Ai models! The latest research finds that some "back doors" that undermine the security of machine learning models cannot be detected
- First knowledge of database
- Principle analysis of ThreadLocal source code
- Problems caused by using ApplicationContext to render layout
- APIJSON简单使用
- [problem solving] dialogfragment can not be attached to a container view
- _ 19_ IO stream summary
- Once the code was encrypted by the company's computer, the compilation failed
- Dart syntax
- 20省市公布元宇宙路线图
猜你喜欢

Day_ 05

The paid video at station B caused the up master to lose more than ten thousand fans

DDD概念复杂难懂,实际落地如何设计代码实现模型?

error Parsing error: Unexpected reserved word ‘await‘.

Read mysql45 the next day

加密潮流:时尚向元宇宙的进阶

论文笔记:LBCF: A Large-Scale Budget-Constrained Causal Forest Algorithm

Read mysql45 - a simple understanding of global locks and table locks

Reading mysql45 lecture - index continued

这项最新的调查研究,揭开多云发展的两大秘密
随机推荐
Day21 multithreading
This article will help you understand the common concepts, advantages and disadvantages of JWT
DDD概念复杂难懂,实际落地如何设计代码实现模型?
First knowledge of database
Reading mysql45 lecture - index continued
心樓:華為運動健康的七年築造之旅
ES6 deconstruction assignment rename
论文笔记:Generalized Random Forests
使用hbuilder X创建uniapp项目
炮打司令部,别让一个UI框架把你毁了
【蓝桥杯集训100题】scratch指令移动 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第14题
What can one line of code do?
Webgl and webgpu comparison [4] - uniform
Collection overview, array encapsulation
Beginner bug set
Catheon Gaming任命Activision Blizzard前亚太区负责人Mark Aubrey担任首席执行官
A TDD example
Bypass technology to talk about 'cross end'
Day_ 04
Day_ thirteen