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 Editor的许多功能都可以通过键盘快捷键执行. 该页面列出了默认情况下具有关联的快捷方式的功能, 但是许多其他功能也可以在编辑器设置中进行自定义. 要更改与这些操作和其他操作相关的键, 请导航至 编辑器->编辑器设置->快捷键 .

尽管某些操作是通用的, 但许多快捷方式特定于单个工具. 因此, 可能会将某些按键组合分配给一个以上的功能. 将根据上下文执行正确的操作.

备注

尽管Windows和Linux版本的编辑器共享大多数默认设置, 但某些快捷方式对于macOS版本可能有所不同. 这样做是为了将编辑器更好地集成到macOS生态系统中. 熟练使用该操作系统上的标准快捷方式的用户应该直观地找到Godot Editor的默认键映射.

编辑器常规操作

动作名称

Windows, Linux

macOS

编辑器设置

打开 2D 编辑器

Ctrl + F1

Alt+1

editor/editor_2d

打开 3D 编辑器

Ctrl + F2

Alt+2

editor/editor_3d

打开脚本编辑器

Ctrl + F3

Alt+3

editor/editor_script

搜索帮助

F1

Alt+Space

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 / 画布项目编辑器

动作名称

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

平移视图

Space

Space

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 / 空间编辑器

动作名称

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 + Up Arrow

Alt + Up Arrow

script_text_editor/move_up

向下移动

Alt + Down Arrow

Alt + Down Arrow

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 + Space

Ctrl + Space

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

将缩进转为制表符

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 + Space

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 + Up Arrow

Shift + Alt + Up Arrow

script_editor/window_move_up

向下移动

Shift + Alt + Down Arrow

Shift + Alt + Down Arrow

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 + Left Arrow

Alt + Left Arrow

script_editor/history_previous

前进

Alt + Right Arrow

Alt + Right Arrow

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 + Left Arrow

Alt + Left Arrow

file_dialog/go_back

前进

Alt + Right Arrow

Alt + Right Arrow

file_dialog/go_forward

上一级

Alt + Up Arrow

Alt + Up Arrow

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 + BkSp

file_dialog/delete

聚焦路径

Ctrl + D

Cmd + D

file_dialog/focus_path

向上移动收藏

Ctrl + Up Arrow

Cmd + Up Arrow

file_dialog/move_favorite_up

向下移动收藏

Ctrl + Down Arrow

Cmd + Down Arrow

file_dialog/move_favorite_down

文件系统面板

动作名称

Windows, Linux

macOS

编辑器设置

复制路径

Ctrl + C

Cmd + C

filesystem_dock/copy_path

Duplicate

Ctrl + D

Cmd + D

filesystem_dock/duplicate

删除

Del

Cmd + BkSp

filesystem_dock/delete

场景树停靠面板

动作名称

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 + BkSp

scene_tree/delete

强制删除

Shift + Del

Shift + Del

scene_tree/delete_no_confirm

Duplicate

Ctrl + D

Cmd + D

scene_tree/duplicate

向上移动

Ctrl + Up Arrow

Cmd + Up Arrow

scene_tree/move_up

向下移动

Ctrl + Down Arrow

Cmd + Down Arrow

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 + BkSp

animation_editor/delete_selection

跳到下一步

Ctrl + Right Arrow

Cmd + Right Arrow

animation_editor/goto_next_step

跳到上一步

Ctrl + Left Arrow

Cmd + Left Arrow

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 + BkSp

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