Shortcut keys used daily in Pycharm


Search/Replace

F3 next

Ctrl + R to replace

Shift + F3 previous

Ctrl + Shift + F or double-click shift to find global

Ctrl + Shift + R global replacement



Running

Alt + Shift + F10 Run mode configuration
Alt + Shift + F9 Debug mode configuration
Shift + F9 Debug
Ctrl + Shift + F10 Run editor configuration

Ctrl + Alt + R to run the manage.py task


Editing

Ctrl + Space Basic code completion
Ctrl + Alt + Space Quickly import any class
Ctrl + Shift + Enter Statement completion
Ctrl + P Parameter information
Ctrl + Q Quick view document
F1 Web document
Shift + F1 Enter web document homepage
Ctrl + Shift + Z Redo
Ctrl + hover/left mouse click Introduction/Enter code definition
Ctrl + F1 Display error description/warning information
Alt + Insert Automatically generate code
Ctrl + O Re-method
Ctrl + Alt + T Select
Ctrl + / line comment/uncomment line
Ctrl + Shift + / Block comment/uncomment
Ctrl + W Select added code block
Ctrl + Shift + W Return to previous state
Ctrl + Shift + ]/[ Selected code block end/start
Alt + Enter Quick fix
Ctrl + Alt + L Code Formatting
Ctrl + Alt + O Optimize Import
Ctrl + Alt + I Auto Indent
Tab / Shift + Tab Indent/Unindent
Ctrl+X/Shift+Delete Cut
Ctrl+C/Ctrl+Insert Copy
Ctrl+V/Shift+Insert Paste
Ctrl + Shift + V Recent Buffer Paste
Ctrl + D Copy
Ctrl + Y Delete
Ctrl + Shift + J Add Smart Line
Ctrl + Enter Smart Line Cut
Shift + Enter Newline
Ctrl + Shift + U Switch between regions or code blocks
Ctrl + Delete Delete to the end of a character
Ctrl + Backspace Delete to the beginning of a character
Ctrl + Numpad+/- Expand/collapse code blocks
Ctrl + shift + Numpad+/- Expand/collapse all code blocks
Ctrl + F4 to close the tab


Debugging

F8 Skip
F7 Enter
Shift + F8 Exit
Alt + F9 Run Cursor
Alt + F8 Validate Expression
Ctrl + Alt + F8 Quickly Validate Expression
F9 Resume Program
Ctrl + F8 Breakpoint Switch
Ctrl + Shift + F8 View Breakpoint

Navigation

Ctrl + N Jump to class
Ctrl + Shift + N Jump to symbol
Alt + Right/Left Jump to next/previous tab
Alt + Up/Down Jump to previous/next method
F12 Go back to previous Tool window
Esc Return to the editing window from the tool window
Shift + Esc Hide the recently run window
Ctrl + Shift + F4 Close the tab
Ctrl + G View the current line number/character number
Ctrl + E Open the recently used file list
Ctrl+Alt+Left /Right Back/Forward
Ctrl+Shift+Backspace Navigate to recent editing area
Alt + F1 Find current file or mark
Ctrl+B / Ctrl+Click Jump to declaration
Ctrl + Alt + B Jump to implementation
Ctrl + Shift + I View Quick Definition
Ctrl + Shift + B Jump to type declaration
Ctrl + U Jump to parent method/parent class
Ctrl + ]/[ Jump to end/start of code block
Ctrl + F12 Pop up file structure
Ctrl + H Type hierarchy
Ctrl + Shift + H Method Hierarchy
Ctrl + Alt + H Call Hierarchy
F2 / Shift + F2 Next / previous highlighted error
F4 / Ctrl + Enter Edit resource / View resource
Alt + Home Show navigation bar
F11 Bookmark switch
Ctrl + Shift + F11 Bookmark mnemonic switch
Ctrl + #[0-9] Jump to the marked bookmark

Shift + F11 show bookmarks

Basic (General)

Alt + #[0-9] Open tool window
Ctrl + Alt + Y Synchronize
Ctrl + Shift + F12 Maximize
Alt + Shift + F Add preference
Alt + Shift + I Check current file against configuration
Ctrl + BackQuote(') Quick switch current Schedule
Ctrl + Alt + S Open Settings
Ctrl + Shift + A Find All Actions
Ctrl + Tab Window Toggle


Search related (Usage Search)

Alt + F7/Ctrl + F7 Query usage in file
Ctrl + Shift + F7 Highlight usage in file
Ctrl + Alt + F7 Show usage

Refactoring

F5    复制
F6    剪切
Alt + Delete    安全删除
Shift + F6    重命名
Ctrl + F6    更改签名
Ctrl + Alt + N    内联
Ctrl + Alt + M    提取方法
Ctrl + Alt + V    提取属性
Ctrl + Alt + F    提取字段
Ctrl + Alt + C    提取常量
Ctrl + Alt + P    提取参数


模版(Live Templates)

Ctrl + Alt + J    当前行使用模版
Ctrl +J    插入模版

控制VCS/Local History

Ctrl + K    提交项目
Ctrl + T    更新项目
Alt + Shift + C    查看最近变更
Alt + BackQuote(’)    VCS快速弹出


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324855118&siteId=291194637