Python - 常用的PyCharm的快捷键和使用场景介绍 (2)

VERSION CONTROL 版本控制
VCS operations popup… Alt + `
Commit Ctrl + K
Update project Ctrl + T
Recent changes Alt + Shift + C
Revert Ctrl + Alt + Z
Push… Ctrl + Shift + K
Next / previous change Ctrl + Alt + Shift + Down / Up


MASTER YOUR IDE 整体设置
Find action… Ctrl + Shift + A
Open a tool window Alt + [0-9]
Synchronize Ctrl + Alt + Y
Quick switch scheme… Ctrl + `
Settings… Ctrl + Alt + S
Jump to source / navigation bar         F4 / Alt + Home
Jump to last tool window F12
Hide active / all tool windows Shift + Esc / Ctrl + Shift + F12
Go to next / previous editor tab          Alt + Right / Alt + Left
Go to editor (from a tool window)      Esc
Close active tab / window Ctrl + Shift + F4 / Ctrl + F4


FIND EVERYTHING 查找
Search everywhere Double Shift
Find / replace Ctrl + F / R
Find in path / Replace in path Ctrl + Shift + F / R
Next / previous occurence F3 / Shift + F3
Find word at caret Ctrl + F3
Go to class / file Ctrl + N / Ctrl + Shift + N
Go to file member Ctrl + F12
Go to symbol Ctrl + Alt + Shift + N


NAVIGATE FROM SYMBOLS 从代码中跳转浏览
Declaration Ctrl + B
Type declaration (JavaScript only)    Ctrl + Shift + B
Super method Ctrl + U
Implementation(s) Ctrl + Alt + B
Find usages / Find usages in file       Alt + F7 / Ctrl + F7
Highlight usages in file Ctrl + Shift + F7
Show usages Ctrl + Alt + F7


REFACTOR AND CLEAN UP 代码重整
Refactor this… Ctrl + Alt + Shift + T
Copy… / Move… F5 / F6
Safe delete… Alt + Delete
Rename… Shift + F6
Change signature… Ctrl + F6
Inline… Ctrl + Alt + N
Extract method Ctrl + Alt + M
Introduce variable/ parameter          Ctrl + Alt + V / P
Introduce field / constant  Ctrl + Alt + F / C
Reformat code Ctrl + Alt + L


ANALYZE AND EXPLORE 分析
Show error description Ctrl + F1
Next / previous highlighted error        F2 / Shift + F2
Run inspection by name… Ctrl + Alt + Shift + I
Type / call hierarchy Ctrl + H / Ctrl + Alt + H


NAVIGATE IN CONTEXT 代码内容透视
Select in… Alt + F1
Recently viewed / Recent locations  Ctrl + E / Ctrl + Shift + E
Last edit location Ctrl + Shift + Back
Navigate back / forward Ctrl + Alt + Left / Right
Go to previous / next method Alt + Up / Down
Go to line / column… Ctrl + G
Go to code block end / start Ctrl + ] / [
Add to favorites Alt + Shift + F
Toggle bookmark F11
Toggle bookmark with mnemonic    Ctrl + F11
Go to numbered bookmark Ctrl + [0-9]
Show bookmarks Shift + F11


BUILD, RUN, AND DEBUG 运行相关
Run context configuration Ctrl + Shift + F10
Run / debug selected configuration  Alt + Shift + F10 / F9
Run / debug current configuration    Shift + F10 / F9
Step over / into F8 / F7
Smart step into Shift + F7
Step out Shift + F8
Run to cursor / Force run to cursor    Alt + F9 / Ctrl + Alt + F9
Show execution point Alt + F10
Evaluate expression… Alt + F8
Stop Ctrl + F2
Stop background processes…         Ctrl + Shift + F2
Resume program F9
Toggle line breakpoint Ctrl + F8
Toggle temporary line breakpoint    Ctrl + Alt + Shift + F8
Edit / view breakpoint Ctrl + Shift + F8

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zzffdy.html