Pycharm common shortcuts

title image

背景

编程是逐步磨练的技能,熟练地使用编辑器的快捷键可以让人事半功倍。水银泻地般地,优雅地编程。

快捷键

功能 快捷键 说明
line comment ctrl + /  
block comment ctrl + shift + /  
show documentation ctrl + q  
surround with ctrl + alt + t surround by if, while, try structures
code completion ctrl + space  
delete char to the right of caret delete  
paste from history ctrl + shift + v  
move to next word ctrl + right  
move to previous word ctrl + left  
delete line ctrl + y  
duplicate selected line or block ctrl + d  
toggle case ctrl + shift + u  
move to code block start ctrl + [  
move to code block end ctrl + ]  
join lines ctrl + shift + j  
split line ctrl + enter  
expand selection ctrl + w  
shrink selection ctrl + shift + w  
reformat code ctrl + alt + l  
run shift + f10  
rerun ctrl + f5  
debug shift + f9  
escape escape escape from popups or searches
next tab alt + right  
previous tab alt + left  
find and replace ctrl + r  
next/previous occurrence of search result f3 / shift + f3  
navigate to definition or usages ctrl + b  
previous/next method alt + up/down  
undo last navigation ctrl + alt + left  
redo undone navigation ctrl + alt + right  
last edit location ctrl + shift + backspace  
rename shift + f6  
change method signature ctrl+ f6  
safe delete alt + delete  
extract method ctrl + alt + m  
extract variable ctrl + alt + v  
extract field ctrl + alt + f  
extract parameter ctrl + alt + p  
advanced search ctrl + shift + f  
Written on November 27, 2019