Work in progress

The content of this page was not yet updated for Godot 4.2 and may be outdated. If you know how to improve this page or you can confirm that it's up to date, feel free to open a pull request.

預設編輯器快捷鍵

Godot 編輯器中的許多功能都可以使用鍵盤快捷鍵來執行。本頁列出了預設有快捷鍵的功能,但還有許多其他的功能可以在編輯器設定中自定。欲修改這些功能設定的按鍵以及其他操作,請至 編輯器 -> 編輯器設定 -> Shortcuts(快捷鍵)

雖然有部分功能是通用的,但許多快捷鍵都是各個工具特定的。因此有些按鍵組合可能被分配給超過一個的功能。依照不同情況會執行正確的操作。

備註

Windows 與 Linux 的編輯器建置通常的預設設定大多都相同,但 macOS 版本可能有些快捷鍵不同。這是為了讓編輯器可以與 macOS 生態系統整合地更好。熟悉作業系統的標準快捷鍵的使用者應該能直覺地找到 Godot 編輯器的預設按鍵對應。

通用編輯器操作

操作名稱

Windows、Linux

macOS

編輯器設定

開啟 2D 編輯器

Ctrl + F12

Alt + 1

editor/editor_2d

開啟 3D 編輯器

Ctrl + F2

Alt + 2

editor/editor_3d

開啟腳本編輯器

Ctrl + F

Alt + 3

editor/editor_script

搜尋說明

F1

Alt + 空白鍵

editor/editor_help

專注模式

Ctrl + Shift + F11

Cmd + Ctrl + D

editor/distraction_free_mode

下一個分頁

Ctrl + Tab

Cmd + Tab

editor/next_tab

上一個分頁

Ctrl + Shift + Tab

Cmd + Shift + Tab

editor/prev_tab

篩選檔案

Ctrl + Alt + P

Cmd + Alt + P

editor/filter_files

開啟場景

Ctrl + O

Cmd + O

editor/open_scene

關閉場景

Ctrl + Shift + W

Cmd + Shift + W

editor/close_scene

重新開啟已關閉的場景

Ctrl + Shift + T

Cmd + Shift + T

editor/reopen_closed_scene

儲存場景

Ctrl + S

Cmd + S

editor/save_scene

另存場景為

Ctrl + Shift + S

Cmd + Shift + S

editor/save_scene_as

儲存所有場景

Ctrl + Shift + Alt + S

Cmd + Shift + Alt + S

editor/save_all_scenes

快速開啟

Shift + Alt + O

Shift + Alt + O

editor/quick_open

快速開啟場景

Ctrl + Shift + O

Cmd + Shift + O

editor/quick_open_scene

快速開啟場景

Ctrl + Alt + O

Cmd + Alt + O

editor/quick_open_script

復原

Ctrl + Z

Cmd + Z

editor/undo

重做

Ctrl + Shift + Z

Cmd + Shift + Z

editor/redo

離開

Ctrl + Q

Cmd + Q

editor/file_quit

退出到專案列表

Ctrl + Shift + Q

Shift + Alt + Q

editor/quit_to_project_list

螢幕截圖

Ctrl + F12

Cmd + F12

editor/take_screenshot

開啟/取消全螢幕顯示

Shift + F11

Cmd + Ctrl + F

editor/fullscreen_mode

執行

F5

Cmd + B

editor/play

暫停場景

F7

Cmd + Ctrl + Y

editor/pause_scene

停止

F8

Cmd + .

editor/stop

執行場景

F6

Cmd + R

editor/play_scene

執行自定義場景

Ctrl + Shift + F5

Cmd + Shift + R

editor/play_custom_scene

展開底部面板

Shift + F12

Shift + F12

editor/bottom_panel_expand

2D / Canvas 專案編輯器

操作名稱

Windows、Linux

macOS

編輯器設定

放大

Ctrl + =

Cmd + =

canvas_item_editor/zoom_plus

縮小

Ctrl + -

Cmd + -

canvas_item_editor/zoom_minus

重設縮放

Ctrl + 0

Cmd + 0

canvas_item_editor/zoom_reset

平移檢視

空白鍵

空白鍵

canvas_item_editor/pan_view

選擇模式

Q

Q

canvas_item_editor/select_mode

移動模式

W

W

canvas_item_editor/move_mode

旋轉模式

E

E

canvas_item_editor/rotate_mode

縮放模式

S

S

canvas_item_editor/scale_mode

尺規模式

R

R

canvas_item_editor/ruler_mode

使用智慧型吸附

Shift + S

Shift + S

canvas_item_editor/use_smart_snap

使用網格吸附

Shift + G

Shift + G

canvas_item_editor/use_grid_snap

將網格步數乘以 2

Num *

Num *

canvas_item_editor/multiply_grid_step

將網格步數除以 2

Num /

Num /

canvas_item_editor/divide_grid_step

永遠顯示網格

G

G

canvas_item_editor/show_grid

顯示輔助資訊

H

H

canvas_item_editor/show_helpers

顯示參考線

Y

Y

canvas_item_editor/show_guides

置中所選

F

F

canvas_item_editor/center_selection

完整顯示所選

Shift + F

Shift + F

canvas_item_editor/frame_selection

預覽畫布比例

Ctrl + Shift + P

Cmd + Shift + P

canvas_item_editor/preview_canvas_scale

插入關鍵影格

Ins

Ins

canvas_item_editor/anim_insert_key

插入關鍵影格(於現有軌道)

Ctrl + Ins

Cmd + Ins

canvas_item_editor/anim_insert_key_existing_tracks

自節點建立自定骨骼

Ctrl + Shift + B

Cmd + Shift + B

canvas_item_editor/skeleton_make_bones

清除姿勢

Shift + K

Shift + K

canvas_item_editor/anim_clear_pose

3D / Spatial 編輯器

操作名稱

Windows、Linux

macOS

編輯器設定

開啟/關閉自由視圖

Shift + F

Shift + F

spatial_editor/freelook_toggle

自由觀看 左

A

A

spatial_editor/freelook_left

自由觀看 右

D

D

spatial_editor/freelook_right

自由觀看 前

W

W

spatial_editor/freelook_forward

自由觀看 後

S

S

spatial_editor/freelook_backwards

自由觀看 上

E

E

spatial_editor/freelook_up

自由觀看 下

Q

Q

spatial_editor/freelook_down

自由觀看速度調整

Shift

Shift

spatial_editor/freelook_speed_modifier

自由觀看減速調整

Alt

Alt

spatial_editor/freelook_slow_modifier

選擇模式

Q

Q

spatial_editor/tool_select

移動模式

W

W

spatial_editor/tool_move

旋轉模式

E

E

spatial_editor/tool_rotate

縮放模式

R

R

spatial_editor/tool_scale

使用本機空間

T

T

spatial_editor/local_coords

使用吸附

Y

Y

spatial_editor/snap

吸附物件至地板

PgDown

PgDown

spatial_editor/snap_to_floor

俯視圖

Num 7

Num 7

spatial_editor/top_view

仰視圖

Alt + Num 7

Alt + Num 7

spatial_editor/bottom_view

前視圖

Num 1

Num 1

spatial_editor/front_view

後視圖

Alt + Num 1

Alt + Num 1

spatial_editor/rear_view

右視圖

Num 3

Num 3

spatial_editor/right_view

左視圖

Alt + Num 3

Alt + Num 3

spatial_editor/left_view

切換投影或正交視圖

Num 5

Num 5

spatial_editor/switch_perspective_orthogonal

插入動畫關鍵影格

K

K

spatial_editor/insert_anim_key

聚焦原點

O

O

spatial_editor/focus_origin

聚焦所選

F

F

spatial_editor/focus_selection

將變換與視圖對齊

Ctrl + Alt + M

Cmd + Alt + M

spatial_editor/align_transform_with_view

將旋轉與視圖對齊

Ctrl + Alt + F

Cmd + Alt + F

spatial_editor/align_rotation_with_view

1 個檢視區

Ctrl + 1

Cmd + 1

spatial_editor/1_viewport

2 個檢視區

Ctrl + 2

Cmd + 2

spatial_editor/2_viewports

2 個檢視區(替代)

Ctrl + Alt + 2

Cmd + Alt + 2

spatial_editor/2_viewports_alt

3 個檢視區

Ctrl + 3

Cmd + 3

spatial_editor/3_viewports

3 個檢視區(替代)

Ctrl + Alt + 3

Cmd + Alt + 3

spatial_editor/3_viewports_alt

4 個檢視區

Ctrl + 4

Cmd + 4

spatial_editor/4_viewports

文字編輯器

操作名稱

Windows、Linux

macOS

編輯器設定

剪下

Ctrl + X

Cmd + X

script_text_editor/cut

複製

Ctrl + C

Cmd + C

script_text_editor/copy

貼上

Ctrl + V

Cmd + V

script_text_editor/paste

全部選擇

Ctrl + A

Cmd + A

script_text_editor/select_all

尋找

Ctrl + F

Cmd + F

script_text_editor/find

尋找下一個

F3

Cmd + G

script_text_editor/find_next

尋找上一個

Shift + F3

Cmd + Shift + G

script_text_editor/find_previous

在檔案中搜尋

Ctrl + Shift + F

Cmd + Shift + F

script_text_editor/find_in_files

取代

Ctrl + R

Alt + Cmd + F

script_text_editor/replace

在檔案中取代

Ctrl + Shift + R

Cmd + Shift + R

script_text_editor/replace_in_files

復原

Ctrl + Z

Cmd + Z

script_text_editor/undo

重做

Ctrl + Y

Cmd + Y

script_text_editor/redo

上移

Alt + 方向鍵上

Alt + 方向鍵上

script_text_editor/move_up

下移

Alt + 方向鍵下

Alt + 方向鍵下

script_text_editor/move_down

删除行

Ctrl + Shift + K

Cmd + Shift + K

script_text_editor/delete_line

註解/取消註解

Ctrl + K

Cmd + K

script_text_editor/toggle_comment

展開/收起行

Alt + F

Ctrl + Cmd + F

script_text_editor/toggle_fold_line

重複所選

Ctrl + Shift + D

Cmd + Shift + C

script_text_editor/duplicate_selection

補全符號

Ctrl + 空白鍵

Ctrl + 空白鍵

script_text_editor/complete_symbol

取值所選內容

Ctrl + Shift + E

Cmd + Shift + E

script_text_editor/evaluate_selection

移除後方空白字元

Ctrl + Alt + T

Cmd + Alt + T

script_text_editor/trim_trailing_whitespace

大寫

Shift + F4

Shift + F4

script_text_editor/convert_to_uppercase

小寫

Shift + F5

Shift + F5

script_text_editor/convert_to_lowercase

首字父大寫

Shift + F6

Shift + F6

script_text_editor/capitalize

轉換縮排為空白

Ctrl + Shift + Y

Cmd + Shift + Y

script_text_editor/convert_indent_to_spaces

轉換縮排為 Tab

Ctrl + Shift + I

Cmd + Shift + I

script_text_editor/convert_indent_to_tabs

自動縮排

Ctrl + I

Cmd + I

script_text_editor/auto_indent

新增/移除書籤

Ctrl + Alt + B

Cmd + Alt + B

script_text_editor/toggle_bookmark

跳至下一個書籤

Ctrl + B

Cmd + B

script_text_editor/goto_next_bookmark

跳至上一個書籤

Ctrl + Shift + B

Cmd + Shift + B

script_text_editor/goto_previous_bookmark

跳至函式

Ctrl + Alt + F

Ctrl + Cmd + J

script_text_editor/goto_function

跳至第 ... 行

Ctrl + L

Cmd + L

script_text_editor/goto_line

設定/移除中斷點

F9

Cmd + Shift + B

script_text_editor/toggle_breakpoint

移除所有中斷點

Ctrl + Shift + F9

Cmd + Shift + F9

script_text_editor/remove_all_breakpoints

跳至下一個中斷點

Ctrl + .

Cmd + .

script_text_editor/goto_next_breakpoint

跳至上一個中斷點

Ctrl + ,

Cmd + ,

script_text_editor/goto_previous_breakpoint

本文說明

Alt + F1

Alt + Shift + 空白鍵

script_text_editor/contextual_help

腳本編輯器

操作名稱

Windows、Linux

macOS

編輯器設定

尋找

Ctrl + F

Cmd + F

script_editor/find

尋找下一個

F3

F3

script_editor/find_next

尋找上一個

Shift + F3

Shift + F3

script_editor/find_previous

在檔案中搜尋

Ctrl + Shift + F

Cmd + Shift + F

script_editor/find_in_files

上移

Shift + Alt + 方向鍵上

Shift + Alt + 方向鍵上

script_editor/window_move_up

下移

Shift + Alt + 方向鍵下

Shift + Alt + 方向鍵下

script_editor/window_move_down

下一個腳本

Ctrl + Shift + .

Cmd + Shift + .

script_editor/next_script

上一個腳本

Ctrl + Shift + ,

Cmd + Shift + ,

script_editor/prev_script

重新打開關閉的腳本

Ctrl + Shift + T

Cmd + Shift + T

script_editor/reopen_closed_script

儲存

Ctrl + Alt + S

Cmd + Alt + S

script_editor/save

全部儲存

Ctrl + Shift + Alt + S

Cmd + Shift + Alt + S

script_editor/save_all

軟重新載入腳本

Ctrl + Shift + R

Cmd + Shift + R

script_editor/reload_script_soft

上一個歷史記錄

Alt + 方向鍵左

Alt + 方向鍵左

script_editor/history_previous

下一個歷史記錄

Alt + 方向鍵右

Alt + 方向鍵右

script_editor/history_next

關閉

Ctrl + W

Cmd + W

script_editor/close_file

執行

Ctrl + Shift + X

Cmd + Shift + X

script_editor/run_file

開啟/關閉腳本面板

Ctrl + \

Cmd + \

script_editor/toggle_scripts_panel

放大

Ctrl + =

Cmd + =

script_editor/zoom_in

縮小

Ctrl + -

Cmd + -

script_editor/zoom_out

重設縮放大小

Ctrl + 0

Cmd + 0

script_editor/reset_zoom

編輯器輸出

操作名稱

Windows、Linux

macOS

編輯器設定

複製所選

Ctrl + C

Cmd + C

editor/copy_output

清除輸出

Ctrl + Shift + K

Cmd + Shift + K

editor/clear_output

除錯工具

操作名稱

Windows、Linux

macOS

編輯器設定

逐步執行

F11

F11

debugger/step_into

不進入函式

F10

F10

debugger/step_over

繼續

F12

F12

debugger/continue

檔案對話框

操作名稱

Windows、Linux

macOS

編輯器設定

上一頁

Alt + 方向鍵左

Alt + 方向鍵左

file_dialog/go_back

下一頁

Alt + 方向鍵右

Alt + 方向鍵右

file_dialog/go_forward

上一層

Alt + 方向鍵上

Alt + 方向鍵上

file_dialog/go_up

重新整理

F5

F5

file_dialog/refresh

顯示/取消顯示隱藏檔案

Ctrl + H

Cmd + H

file_dialog/toggle_hidden_files

新增/取消我的最愛

Alt + F

Alt + F

file_dialog/toggle_favorite

切換模式

Alt + V

Alt + V

file_dialog/toggle_mode

建立資料夾

Ctrl + N

Cmd + N

file_dialog/create_folder

刪除

Del

Cmd + 退格鍵

file_dialog/delete

聚焦路徑

Ctrl + D

Cmd + D

file_dialog/focus_path

向上移動我的最愛

Ctrl + 方向鍵上

Cmd + 方向鍵上

file_dialog/move_favorite_up

向下移動我的最愛

Ctrl + 方向鍵下

Cmd + 方向鍵下

file_dialog/move_favorite_down

檔案系統面板

操作名稱

Windows、Linux

macOS

編輯器設定

複製路徑

Ctrl + C

Cmd + C

filesystem_dock/copy_path

重複

Ctrl + D

Cmd + D

filesystem_dock/duplicate

刪除

Del

Cmd + 退格鍵

filesystem_dock/delete

場景樹 Dock

操作名稱

Windows、Linux

macOS

編輯器設定

新增子節點

Ctrl + A

Cmd + A

scene_tree/add_child_node

批次重新命名

Ctrl + F2

Cmd + F2

scene_tree/batch_rename

複製節點路徑

Ctrl + Shift + C

Cmd + Shift + C

scene_tree/copy_node_path

刪除

Del

Cmd + 退格鍵

scene_tree/delete

強制刪除

Shift + Del

Shift + Del

scene_tree/delete_no_confirm

重複

Ctrl + D

Cmd + D

scene_tree/duplicate

上移

Ctrl + 方向鍵上

Cmd + 方向鍵上

scene_tree/move_up

下移

Ctrl + 方向鍵下

Cmd + 方向鍵下

scene_tree/move_down

動畫軌編輯器

操作名稱

Windows、Linux

macOS

編輯器設定

重複所選

Ctrl + D

Cmd + D

animation_editor/duplicate_selection

轉置並重複

Ctrl + Shift + D

Cmd + Shift + D

animation_editor/duplicate_selection_transposed

刪除所選

Del

Cmd + 退格鍵

animation_editor/delete_selection

跳至下一步

Ctrl + 方向鍵右

Cmd + 方向鍵右

animation_editor/goto_next_step

跳至上一步

Ctrl + 方向鍵左

Cmd + 方向鍵左

animation_editor/goto_prev_step

圖塊地圖編輯器

操作名稱

Windows、Linux

macOS

編輯器設定

搜尋圖塊

Ctrl + F

Cmd + F

tile_map_editor/find_tile

選擇圖塊

I

I

tile_map_editor/pick_tile

繪製圖塊

P

P

tile_map_editor/paint_tile

油漆桶填滿

G

G

tile_map_editor/bucket_fill

轉置

T

T

tile_map_editor/transpose

水平翻轉

X

X

tile_map_editor/flip_horizontal

垂直翻轉

Z

Z

tile_map_editor/flip_vertical

向左旋轉

A

A

tile_map_editor/rotate_left

向右旋轉

S

S

tile_map_editor/rotate_right

清除變換

W

W

tile_map_editor/clear_transform

選擇

M

M

tile_map_editor/select

剪下所選

Ctrl + X

Cmd + X

tile_map_editor/cut_selection

複製所選

Ctrl + C

Cmd + C

tile_map_editor/copy_selection

清除所選

Del

Cmd + 退格鍵

tile_map_editor/erase_selection

圖塊集編輯器

操作名稱

Windows、Linux

macOS

編輯器設定

下一個座標

PgDown

PgDown

tileset_editor/next_shape

上一個座標

PgUp

PgUp

tileset_editor/previous_shape

區域模式

1

1

tileset_editor/editmode_region

碰撞模式

2

2

tileset_editor/editmode_collision

遮擋模式

3

3

tileset_editor/editmode_occlusion

導覽模式

4

4

tileset_editor/editmode_navigation

優先模式

5

5

tileset_editor/editmode_bitmask

優先模式

6

6

tileset_editor/editmode_priority

圖示模式

7

7

tileset_editor/editmode_icon

Z 索引模式

8

8

tileset_editor/editmode_z_index