PyCharm常用快捷鍵

2022-08-20 01:18:12 字數 3483 閱讀 6855

ctrl + space 基本的**完成(類、方法、屬性)

ctrl + alt + space 快速匯入任意類

ctrl + shift + enter 語句完成

ctrl + p 引數資訊(在方法中呼叫引數)

ctrl + q 快速檢視文件

f1 外部文件

shift + f1 外部文件,進入web文件主頁

ctrl + shift + z --> redo 重做

ctrl + 滑鼠 簡介/進入**定義

ctrl + f1 顯示錯誤描述或警告資訊

alt + insert 自動生成**

ctrl + o 重新方法

ctrl + alt + t 選中

ctrl + / 行注釋/取消行注釋

ctrl + shift + / 塊注釋

ctrl + w 選中增加的**塊

ctrl + shift + w 回到之前狀態

ctrl + shift + ]/[ 選定**塊結束、開始

alt + enter 快速修正

ctrl + alt + l **格式化

ctrl + alt + o 優化匯入

ctrl + alt + i 自動縮排

tab / shift + tab 縮排、不縮排當前行

ctrl+x/shift+delete 剪下當前行或選定的**塊到剪貼簿

ctrl+c/ctrl+insert 複製當前行或選定的**塊到剪貼簿

ctrl+v/shift+insert 從剪貼簿貼上

ctrl + shift + v 從最近的緩衝區貼上

ctrl + d 複製選定的區域或行

ctrl + y 刪除選定的行

ctrl + shift + j 新增智慧型線

ctrl + enter 智慧型線切割

shift + enter 另起一行

ctrl + shift + u 在選定的區域或**塊間切換

ctrl + delete 刪除到字元結束

ctrl + backspace 刪除到字元開始

ctrl + numpad+/- 展開/摺疊**塊(當前位置的:函式,注釋等)

ctrl + shift + numpad+/- 展開/摺疊所有**塊

ctrl + f4 關閉執行的選項卡 2、查詢/替換(search/replace)f3 下乙個

shift + f3 前乙個

ctrl + r 替換

ctrl + shift + f 或者連續2次敲擊shift 全域性查詢

ctrl + shift + r 全域性替換

alt + shift + f10 執行模式配置

alt + shift + f9 除錯模式配置

shift + f10 執行

shift + f9 除錯

ctrl + shift + f10 執行編輯器配置

ctrl + alt + r 執行manage.py任務

f8 跳過

f7 進入

shift + f8 退出

alt + f9 執行游標

alt + f8 驗證表示式

ctrl + alt + f8 快速驗證表示式

f9 恢復程式

ctrl + f8 斷點開關

ctrl + shift + f8 檢視斷點

ctrl + n 跳轉到類

ctrl + shift + n 跳轉到符號

alt + right/left 跳轉到下乙個、前乙個編輯的選項卡

f12 回到先前的工具視窗

esc 從工具視窗回到編輯視窗

shift + esc 隱藏執行的、最近執行的視窗

ctrl + shift + f4 關閉主動執行的選項卡

ctrl + g 檢視當前行號、字符號

ctrl + e 當前檔案彈出,開啟最近使用的檔案列表

ctrl+alt+left/right 後退、前進

ctrl+shift+backspace 導航到最近編輯區域

alt + f1 查詢當前檔案或標識

ctrl+b / ctrl+click 跳轉到宣告

ctrl + alt + b 跳轉到實現

ctrl + shift + i檢視快速定義

ctrl + shift + b跳轉到型別宣告

ctrl + u跳轉到父方法、父類

alt + up/down跳轉到上乙個、下乙個方法

ctrl + ]/[跳轉到**塊結束、開始

ctrl + f12彈出檔案結構

ctrl + h型別層次結構

ctrl + shift + h方法層次結構

ctrl + alt + h呼叫層次結構

f2 / shift + f2下一條、前一條高亮的錯誤

f4 / ctrl + enter編輯資源、檢視資源

alt + home顯示導航條f11書籤開關

ctrl + shift + f11書籤助記開關

ctrl + #[0-9]跳轉到標識的書籤

shift + f11顯示書籤

alt + f7/ctrl + f7檔案中查詢用法

ctrl + shift + f7檔案中用法高亮顯示

ctrl + alt + f7顯示用法

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提取引數

ctrl + k提交專案

ctrl + t更新專案

alt + shift + c檢視最近的變化

alt + backquote(』)vcs快速彈出

ctrl + alt + j當前行使用模版

ctrl +j插入模版

10、基本(general)

alt + #[0-9]開啟相應的工具視窗

ctrl + alt + y同步

ctrl + shift + f12最大化編輯開關

alt + shift + f新增到最喜歡

alt + shift + i根據配置檢查當前檔案

ctrl + backquote(』)快速切換當前計畫

ctrl + alt + s 開啟設定頁

ctrl + shift + a查詢編輯器裡所有的動作

ctrl + tab在視窗間進行切換

pycharm常用快捷鍵

快捷鍵 說明tab 為選中行整體新增縮排 shift tab 為選中行整體去除縮排 ctrl 給選中的行全部加上 去掉注釋 ctrl d 複製並產生當前行或選中行 ctrl a 全選ctrl c 複製ctrl v 貼上ctrl x 剪下ctrl y 刪除當前行或選中行 ctrl z 回退操作 ctr...

pycharm常用快捷鍵

對齊 快捷鍵組合是 ctrl alt l 注釋 ctrl 設定 取消斷點 ctrl f8 ctrl w 選中當前單詞,繼續按,選中它所屬的行 if 方法.更改變數 方法名字 shift f6 進入 定義 ctrl 懸浮 單擊滑鼠左鍵 外部文件,進入web文件主頁 shift f1 alt enter...

Pycharm常用快捷鍵

ctrl d 複製選定的區域或行 ctrl y 刪除選定的行 ctrl alt l 格式化 ctrl alt o 優化匯入 去掉用不到的包匯入 ctrl 滑鼠 簡介 進入 定義 ctrl 行注釋 取消注釋 ctrl 左方括號 快速跳到 開頭 ctrl 右方括號 快速跳到 末尾 shift f10 執...