查看
- Ctrl + B 導航到代碼中某處使用的類服球,方法或變量的聲明
- Ctrl + Q 快速查看文檔
- Alt + F7 快速查看被使用情況 usage
- Ctrl + P 光標處于函數被調用的地方的括號內屈尼,可以查看可能的參數
- Alt+Shift+C to quickly review your recent changes to the project.
- Ctrl + (+-) 收起展開code block
- You can jump directly to any deeply buried file, if you press Ctrl+Shift+N, and type just a couple of characters of the enclosing directories and file names
編輯
- Shift + F6 將caret放置在您想要重命名的變量中笋熬,并按Shift+F6(重構重命名),在出現的彈出窗口中輸入新名稱月杉,或者選擇一個建議的名字突倍,然后按Enter鍵
- Alt + Enter PEP8警告信息忽略: 點擊要忽略的錯誤所在俭尖,然后按Alt+Enter,在彈出下拉菜單選擇ignore errors like this桶良,就可以快速忽略了
- Ctrl + W 編輯器中的Ctrl + W(擴展選擇)選擇插入符號處的單詞座舍,然后選擇源代碼的擴展區(qū)域。例如陨帆,它可能會選擇一個方法名稱曲秉,然后是調用此方法的表達式采蚀,然后是整個語句,然后是代碼塊等承二。您還可以選擇插入符號處的單詞和源代碼的擴展區(qū)域榆鼠,雙擊編輯器中的目標區(qū)域。
- Ctrl+Shift+Backspace (Navigate | Last Edit Location) brings you back to the last place where you made changes in the code.Pressing Ctrl+Shift+Backspace a few times moves you deeper into your changes history.
- Alt + J 選中多個同樣的文本亥鸠,并且能夠同時編輯
- Ctrl + R 替換
- Ctrl + Shift + F 全局查找
- Ctrl + Shift + R 全局替換
- Ctrl+D 復制選定的塊或當前行(當沒有選擇塊時)
- Alt + 拖動鼠標 豎向選擇
- Ctrl+Alt+T : When you want to catch exceptions thrown by some code fragment, select it in the editor, press (Code | Surround With) and choose try/except. This will automatically generate the except clause.
設置
- Ctrl +后引號 可以在編輯器中直接應用另一種代碼風格/著色方案或鍵盤映射妆够。只需按Ctrl +后引號(View | Quick Switch Scheme),即可指定要更改的方案负蚊。