当前位置:网站首页>Pycharm common shortcut keys
Pycharm common shortcut keys
2022-07-26 07:23:00 【Ling Xianwen】
Catalog
Ctrl+D: Quickly copy the previous line
Ctrl+shift+A: Universal command line
Shift two : View project resources
Ctrl+/: Used to comment or uncomment
Ctrl+Alt+L: Quickly sort out the code
Ctrl+Shif+ Left right key : Quickly select , And move it
Ctrl+D: Quickly copy the previous line

Ctrl+C: Copy the current row

Ctrl+shift+A: Universal command line

Shift two : View project resources
Ctrl+R: Quick replacement
Ctrl+F It's a search

Ctrl+/: Used to comment or uncomment
Ctrl+Alt+L: Quickly sort out the code
( This is very useful )
Ctrl+Shif+ Left right key : Quickly select , And move it

Shift+F10: Run code

Shift+F9:debug

debug Partial reference of :http://t.csdn.cn/OvIH0
debug Several icons in the window represent the meaning
1.show execution point (F10)
Show all current breakpoints
2.step over(F8)
Step by step debugging . If the function A Sub function in memory a when , It doesn't go into the subfunction a Perform step-by-step debugging within , It's a sub function a As a whole , One step
3.step into(F7) Step by step debugging .
If the function A Sub function in memory a when , It's going to go into the subfunction a Perform step-by-step debugging within .
4.step into my code(Alt + Shift +F7)
Execute the next line but ignore libraries( Import the statement of the library )
5.force step into(Alt + Shift +F7)
Execute next line ignore lib And construction objects
6.step out(Shift+F8)
When currently executed in a subfunction a In the middle of the day , Select this debugging operation to directly jump out of the sub function a, Instead of continuing to execute sub functions a The remaining code in . And return the previous function .
7.run to cursor(Alt +F9)
Go straight to the next breakpoint , Then let's look at the variable viewer .

Observe the state of variables during debugging . We need to set up a viewer for it . stay Watches Window , Click the plus sign , Enter the name of the variable you want to view , For example, enter delay, And then go back . I tried three variables , Here we see that these three variables are currently undefined , We can define it in the console , You can also perform the next step , Use the assignment in the code to define .
You can click this eye icon , Connect these two windows together to view
The general procedure is , Set breakpoints ,debug function , then F8 Step by step debugging , Encountered the function you want to enter F7 go in , Think of it in shift + F8, Skip where you don't want to see , Set the next breakpoint directly , then F9 In the past .
Console window :

边栏推荐
- Advanced Mathematics (Seventh Edition) Tongji University exercises 2-5 personal solutions
- 倒计时2日!基于 Apache DolphinScheduler&TiDB 的交叉开发实践,从编写到调度让你大幅提升效率
- How to expand and repartition the C disk?
- IDEA快捷键
- WCF 入门教程二
- hot100 哈希
- Task 1 Titanic top 4% with ensemble modeling
- Event loop in browser
- Moonbeam orbiters program: provides a new way for collectors to participate in moonbeam and Moonriver
- HCIP---BGP综合实验
猜你喜欢

Hcip - MPLS Technology

NFT数字藏品系统开发:华为发布首款珍藏版数字藏品

Uncover the mystery of cloud native data management: operation level

NFT数字藏品开发:数字藏品助力企业发展

Learning Efficient Convolutional Networks Through Network Slimming

Leetcode 1184: distance between bus stops

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

Countdown 2 days! Based on the cross development practice of Apache dolphin scheduler & tidb, you can greatly improve your efficiency from writing to scheduling

Network Trimming: A Data-Driven Neuron Pruning Approach towards Efficient Deep Architectures论文翻译/笔记

The interface automation test with a monthly salary of 12k+ takes you to get started in 3 minutes
随机推荐
With Huawei cloud welink, you can connect to the world even in the countryside
3.0.0 alpha 重磅发布!九大新功能、全新 UI 解锁调度系统新能力
Comparison and difference between dependence and Association
PG operation and maintenance -- logical backup and physical backup practice
Differences in the use of function call pointer parameters *p, * & P
如何对C盘进行扩容重新分区?
Uncover the mystery of cloud native data management: operation level
NFT digital collection development: Six differences between digital collections and NFT
DevExpress.XtraEditors.DataNavigator用法
Idea shortcut key
NFT digital collection system development: the collision of literature + Digital Collections
3.0.0 alpha blockbuster release! Nine new functions and new UI unlock new capabilities of dispatching system
2019中兴捧月·模型压缩方案
【推荐系统经典论文(十)】阿里SDM模型
[200 opencv routines] 231. Gray level co-occurrence matrix (GLCM) for feature description
MySql 中应该如何将多行数据转为多列数据
Opencv learning color detection
tensorflow2.x中的量化感知训练以及tflite的x86端测评
单身杯web wp
配置Flask