Common shortcut keys for pycharm
1. Edit (Editing) shortcut key function Ctrl + Space basic code completion (classes, methods, properties) Ctrl + Alt + Space quickly import any class Ctrl + Shift + Enter statements to complete Ctrl + P parameter information (call parameters in methods) Ctrl + Q Quick View documents F1 external documents Shift + F1 external documents Enter the web document home page Ctrl + Shift + Zmurb-> Redo redo Ctrl + Mouse introduction / enter Code definition Ctrl + F1 display error description or warning message Alt + Insert automatically generate Code Ctrl + O re-method Ctrl + Alt + T Select Ctrl + / Line comment / cancel Line comment Ctrl + Shift + / Block comment Ctrl + W Select the added code block Ctrl + Shift + W return to the previous state Ctrl + Shift +] / [end of selected code block, Start Alt + Enter quick fix Ctrl + Alt + L code format Ctrl + Alt + O optimize import Ctrl + Alt + I automatic indent Tab / Shift + Tab indent, Do not indent current line Ctrl+X/Shift+Delete cut current line or selected code block to clipboard Ctrl+C/Ctrl+Insert copy current line or selected code block to clipboard Ctrl+V/Shift+Insert paste Ctrl+ Shift+ V from clipboard paste Ctrl+ D copy selected area or line Ctrl+ Y delete selected line Ctrl+ Shift+ J add Smart Line Ctrl+ Enter Smart WEDM Shift+ Enter another line Ctrl+ Shift+ U is selected Switch Ctrl + Delete delete to the end of the character Ctrl + Backspace delete to the start of the character Ctrl + Numpad+/- expand / collapse the code block (current position: function Comments, etc.) Ctrl + shift + Numpad+/- expand / collapse all code blocks Ctrl + F4 close running tab 2. Find / replace (Search/Replace) Shortcut function F3 next Shift + F3 the previous Ctrl + R replace Ctrl + Shift + F or hit the shift global lookup twice in a row {you can find a string or something throughout the project For example, find a function name string to see how to use the function's} Ctrl + Shift + R global replacement 3. Run (Running) Shortcut function Alt + Shift + F10 run mode configuration Alt + Shift + F9 debug mode configuration Shift + F10 run Shift + F9 debug Ctrl + Shift + F10 run editor configuration
Ctrl + Alt + R run the manage.py task
4. Debug (Debugging) shortcut key function F8 skips F7 to enter Shift + F8 to exit Alt + F9 run Vernier Alt + F8 validation expression Ctrl + Alt + F8 Quick validation expression F9 Restorer Ctrl + F8 breakpoint switch Ctrl + Shift + F8 View breakpoint 5, Navigation (Navigation) Shortcut function Ctrl + N Jump to similar Ctrl + Shift + N Jump to symbol Alt + Right/Left Jump to next, The previous edited tab F12 returns to the previous tool window Esc from the tool window to the editing window Shift + Esc hides the recently run window Ctrl + Shift + F4 closes the active tab Ctrl + G to view the current line number, word symbol Ctrl + E current file pop-up Open the list of recently used files Ctrl+Alt+Left/Right backward, forward Ctrl+Shift+Backspace navigate to the recent editing area Alt+ F1 to find the current file or identify Ctrl+B / Ctrl+Click jump to declare Ctrl+Alt+ B jump to implement Ctrl+Shift+ I view quick definition Ctrl+Shift+B jump to type declaration Ctrl+ U jump to parent method, parent Alt+ Up/Down jump to previous, next method Ctrl+] / [jump to end of code block, Start Ctrl + F12 pop-up file structure Ctrl + H type hierarchy Ctrl + Shift + H method hierarchy Ctrl + Alt + H call hierarchy F2 / Shift + F2 next and previous highlighted error F4 / Ctrl + Enter edit resources, view resources Alt + Home display navigation bar F11 bookmark switch Ctrl + Shift + F11 bookmark mnemonic switch Ctrl + # [0-9] jump to the identified bookmark Shift + F11 display bookmark 6 Search related (Usage Search) shortcut key function query usage in Alt + F7/Ctrl + F7 file Ctrl + Shift + F7 file usage highlight Ctrl + Alt + F7 display usage 7, Reconstruction (Refactoring) Shortcut key function F5 copy F6 cut Alt + Delete safely delete Shift + F6 rename Ctrl + F6 change signature Ctrl + Alt + N inline Ctrl + Alt + M extraction method Ctrl + Alt + V extraction attribute Ctrl + Alt + F extraction field Ctrl + Alt + C extract constant Ctrl + Alt + P extraction parameters 8, Control VCS/Local History shortcut key function Ctrl + K submit project Ctrl + T update project Alt + Shift + C View recent changes Alt + BackQuote (') VCS Quick Pop 9, template (Live Templates) Shortcut function Ctrl + Alt + J the current line uses template Ctrl + J to insert template 10, Basic (General) Shortcut function Alt + # [0-9] Open the corresponding tool window Ctrl + Alt + Y synchronous Ctrl + Shift + F12 maximum editing switch Alt + Shift + F add to favorite Alt + Shift + I check the current file Ctrl + BackQuote (') quickly switch the current plan Ctrl + Alt + S Open the settings page Ctrl + Shift + A find all the actions Ctrl + Tab in the editor switch between windows