Location>code7788 >text

Common PyCharm shortcuts and settings

Popularity:462 ℃/2024-11-20 20:57:42

Ctrl + Space Basic code completion (classes, methods, properties)

Ctrl + Alt + Space to quickly import any class

Ctrl + Shift + Enter Statement Completion

Ctrl + P Parameter information (calling parameters in a method)

Ctrl + Q Quick View Document

F1 External Documentation

Shift + F1 external document, go to web document home page

Ctrl + Shift + Z --> Redo Redo

Ctrl + Mouse Profile/Enter Code Definition

Ctrl + F1 Display error description or warning message

Alt + Insert automatically generates code

Ctrl + O Re-method

Ctrl + Alt + T selected

Ctrl + / line comments/uncomment lines

Ctrl + Shift + / Block Comments

Ctrl + W selects the added code block

Ctrl + Shift + W Back to previous state

Ctrl + Shift + ]/[ Selected block end, start

Alt + Enter Quick Fix

Ctrl + Alt + L Code Formatting

Ctrl + Alt + O Optimize Importing

Ctrl + Alt + I Auto-indentation

Tab / Shift + Tab Indent, Unindent Current Line

Ctrl+X/Shift+Delete cuts the current line or selected block to the clipboard.

Ctrl+C/Ctrl+Insert Copies the current line or selected block of code to the clipboard

Ctrl+V/Shift+Insert Paste from Clipboard

Ctrl + Shift + V Paste from nearest buffer

Ctrl + D Duplicates the selected area or line

Ctrl + Y Delete selected line

Ctrl + Shift + J Add Smartline

Ctrl + Enter Smart Wire Cut

Shift + Enter to start a new line

Ctrl + Shift + U Toggle between selected regions or code blocks

Ctrl + Delete Delete to end of character

Ctrl + Backspace Delete to start of character

Ctrl + Numpad+/- Expand/collapse code blocks (at current position: functions, comments, etc.)

Ctrl + shift + Numpad+/- expand/collapse all code blocks

Ctrl + F4 to close the running tabs

## 2, Find/Replace (Search/Replace)

F3 Next

Shift + F3 Previous

Ctrl + R Replace

Ctrl + Shift + F or hit shift 2 times in a row Global Lookup {you can look up a string in the whole project or something, e.g. look up a function name string to see how it was used before}.

Ctrl + Shift + R Global Replacement

## 3, Running (Running)

Alt + Shift + F10 Runtime Mode Configuration

Alt + Shift + F9 Debug Mode Configuration

Shift + F10 Run

Shift + F9 Debugging

Ctrl + Shift + F10 Run Editor Configuration

Ctrl + Alt + R Run Task

## 4, debugging (Debugging)

F8 Skip

F7 Enter

Shift + F8 Exit

Alt + F9 Run Cursor

Alt + F8 Validate expression

Ctrl + Alt + F8 Quick Validation Expressions

F9 Recovery program

Ctrl + F8 Breakpoint Switch

Ctrl + Shift + F8 View Breakpoints

## 5, navigation (Navigation)

Ctrl + N Jump to class

Ctrl + Shift + N Jump to symbols

Alt + Right/Left Jumps to the next, previous edited tab

F12 Return to the previous tool window

Esc Returns from the tool window to the edit window

Shift + Esc to hide running, recently run windows

Ctrl + Shift + F4 to close actively running tabs

Ctrl + G to view the current line number, character symbols

Ctrl + E Current file popup, opens a list of recently used files

Ctrl+Alt+Left/Right Backward, Forward

Ctrl+Shift+Backspace Navigate to the most recently edited area

Alt + F1 Find current file or logo

Ctrl+B / Ctrl+Click Jump to statement

Ctrl + Alt + B Jump to realization

Ctrl + Shift + I to view Quick Definitions

Ctrl + Shift + B to jump to type declarations

Ctrl + U jump to parent method, parent class

Alt + Up/Down Jump to previous, next method

Ctrl + ]/[Jump to end of block, start of block

Ctrl + F12 to bring up the file structure

Ctrl + H Type Hierarchy

Ctrl + Shift + H Method Hierarchy

Ctrl + Alt + H Call Hierarchy

F2 / Shift + F2 next entry, previous entry highlighted error

F4 / Ctrl + Enter to edit resources, view resources

Alt + Home show navigation bar F11 bookmark switch

Ctrl + Shift + F11 bookmark helper switch

Ctrl + #[0-9] jumps to the bookmark of the marker

Shift + F11 to show bookmarks

## 6, search related (Usage Search)

Alt + F7/Ctrl + F7 Query Usage in Files

Ctrl + Shift + F7 Highlighting of usage in documents

Ctrl + Alt + F7 Show Usage

## 7, refactoring (Refactoring)

F5 Copy F6 Cut

Alt + Delete Secure Deletion

Shift + F6 Rename

Ctrl + F6 Change Signature

Ctrl + Alt + N inline

Ctrl + Alt + M extraction method

Ctrl + Alt + V to extract properties

Ctrl + Alt + F to extract fields

Ctrl + Alt + C to extract constants

Ctrl + Alt + P to extract parameters

## 8. Control of VCS/Local History

Ctrl + K to submit the project

Ctrl + T to update the project

Alt + Shift + C to view recent changes

Alt + BackQuote(') VCS quick ejection

## 9, templates (Live Templates)

Ctrl + Alt + J Use template for current line

Ctrl +J Insert Template

## 10. Basic (General)

Alt + #[0-9] opens the corresponding tool window

Ctrl + Alt + Y Synchronization

Ctrl + Shift + F12 Maximize Edit Switch

Alt + Shift + F Add to Favorites

Alt + Shift + I to check the current file against the configuration

Ctrl + BackQuote(') to quickly switch the current plan

Ctrl + Alt + S Open Settings Page

Ctrl + Shift + A to find all actions in the editor

Ctrl + Tab to switch between windows