当前位置:网站首页>pycharm常用快捷键
pycharm常用快捷键
2022-07-26 07:18:00 【凌贤文】
目录
Ctrl+D:快速复制上一行

Ctrl+C:复制当前行

Ctrl+shift+A:万能命令行

Shift两次:查看项目资源
Ctrl+R:快速替换
Ctrl+F是搜索

Ctrl+/:用于注释或取消注释
Ctrl+Alt+L:快速整理代码
(这个非常有用)
Ctrl+Shif+左右键:快速选中,并进行移动

Shift+F10:运行代码

Shift+F9:debug

debug的部分参考:http://t.csdn.cn/OvIH0
debug窗口几个图标分别代表的意思
1.show execution point (F10)
显示当前所有断点
2.step over(F8)
单步调试。若函数A内存在子函数a时,不会进入子函数a内执行单步调试,而是把子函数a当作一个整体,一步执行
3.step into(F7) 单步调试。
若函数A内存在子函数a时,会进入子函数a内执行单步调试。
4.step into my code(Alt + Shift +F7)
执行下一行但忽略libraries(导入库的语句)
5.force step into(Alt + Shift +F7)
执行下一行忽略lib和构造对象等
6.step out(Shift+F8)
当目前执行在子函数a中时,选择该调试操作可以直接跳出子函数a,而不用继续执行子函数a中的剩余代码。并返回上一层函数。
7.run to cursor(Alt +F9)
直接跳到下一个断点,然后接着来看变量查看器。

在调试过程中观察变量的状态。我们需要对其设置一个查看器。在Watches窗口中,单击加号,输入期望查看的变量名称,例如这里输入delay,然后回车。我试了三个变量,这里我们看到这三个变量目前都是没被定义的,我们可以在控制台里给它定义,也可以通过执行下一步,利用代码中的赋值来定义。
可以通过点击这个眼睛图标,将这两个窗口连在一起查看
一般操作步骤就是,设置好断点,debug运行,然后 F8 单步调试,遇到想进入的函数 F7 进去,想出来在 shift + F8,跳过不想看的地方,直接设置下一个断点,然后 F9 过去。
控制台窗口:

边栏推荐
- Leetcode:749. isolate virus [Unicom component + priority queue + status representation]
- Opencv learning basic functions
- How regular expressions write variables
- How to convert multi row data into multi column data in MySQL
- Qt:模态非模态、文本框、按钮、单行输入框
- C51与MDK共存 Keil5安装教程
- unity3d-对象池的用法
- Advanced Mathematics (Seventh Edition) Tongji University exercises 2-5 personal solutions
- Summer Challenge harmonyos - hamster game based on arkui (JS)
- Leetcode 1184:公交站间的距离
猜你喜欢

Airiot IOT platform enables the container industry to build a welding station information monitoring system
![[yiku] wonderful! This library organization NPM script is simply explosive!](/img/84/e118c11f27aaf26e52059cb7ebc27a.png)
[yiku] wonderful! This library organization NPM script is simply explosive!

Precious metal knowledge: lethal short-term secret script

Check the top 10 best graphics software of the year, meet 99% of your chart needs, and collect it quickly

Advanced Mathematics (Seventh Edition) Tongji University exercises 2-5 personal solutions

正则表达式规则以及常用的正则表达式

To do list application vikunja

PR字幕制作

Apache dolphin scheduler version 3.0.0-beta-1 was released, and flinksql and Zeppelin task types were added

Opencv learning color detection
随机推荐
Moonbeam orbiters program: provides a new way for collectors to participate in moonbeam and Moonriver
每周小贴士#142:多参数构造函数和explicit
NLP自然语言处理-机器学习和自然语言处理介绍(三)
Introduction to C language -- summary table of operator priority sorting
Data platform scheduling upgrade and transformation | operation practice from Azkaban smooth transition to Apache dolphin scheduler
Check the top 10 best graphics software of the year, meet 99% of your chart needs, and collect it quickly
NFT数字藏品系统开发:华为发布首款珍藏版数字藏品
火焰图分析Flink反压
Talent column | can't use Apache dolphin scheduler? The most complete introductory tutorial written by the boss in one month [3]
HCIP --- MPLS技术
Pycharm的相关配置:改字体样式和大小、更改图片背景、更改控制台输出的字体颜色
mysql语法(二)(纯语法)
Uncover the mystery of cloud native data management: operation level
又是一年开源之夏,1.2万项目奖金等你来拿!
Rgb-t tracking - [dataset benchmark] gtot / rgbt210 / rgbt234 / vot-2019-2020 / laser / VTUAV
Question: can't download sh shellcheck Please install it manually and some commands of shell script
4. Data integrity
Drools(2):Drools快速入门
Leetcode 1184:公交站间的距离
Why can't extern compile variables decorated with const?