Default editor shortcuts

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

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

注解

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

General Editor Actions

Action name Windows, Linux macOS系统 Editor setting
打开2D编辑器 F1 Alt + 1 editor/editor_2d
打开3D编辑器 F2 Alt + 2 editor/editor_3d
打开脚本编辑器 F3 Alt + 3 editor/editor_script
搜索帮助 Shift + 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
Filter Files 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
Save Scene As 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
Quick Open Script Ctrl + Alt + O Cmd + Alt + O editor/quick_open_script
撤销 Ctrl + Z Cmd + Z editor/undo
重做 Ctrl + Shift + Z Cmd + Shift + Z editor/redo
Quit 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 Item Editor

Action name Windows, Linux macOS系统 Editor setting
放大 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
Make Custom Bones from Nodes Ctrl + Shift + B Cmd + Shift + B canvas_item_editor/skeleton_make_bones
清除姿势 Shift + K Shift + K canvas_item_editor/anim_clear_pose

3D/空间编辑器

Action name Windows, Linux macOS系统 Editor setting
切换自由观看 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

Text Editor

Action name Windows, Linux macOS系统 Editor setting
剪切 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 Alt + F script_text_editor/toggle_fold_line
复制到下一行 Ctrl + D Cmd + Shift + C script_text_editor/clone_down
符号自动补全 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
将缩进转为Tabs 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

脚本编辑器

Action name Windows, Linux macOS系统 Editor setting
查找 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
Next Script Ctrl + Shift + . Cmd + Shift + . script_editor/next_script
Previous 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

Visual Script Editor

Action name Windows, Linux macOS系统 Editor setting
查找节点类型 Ctrl + F Cmd + F visual_script_editor/find_node_type
复制节点 Ctrl + C Cmd + C visual_script_editor/copy_nodes
剪切节点 Ctrl + X Cmd + X visual_script_editor/cut_nodes
粘贴节点 Ctrl + V Cmd + V visual_script_editor/paste_nodes
删除选中项 Del Cmd + BkSp visual_script_editor/delete_selected
生成函数 Ctrl + G Cmd + G visual_script_editor/create_function
编辑成员 Ctrl + E Cmd + E visual_script_editor/edit_member
刷新节点 Ctrl + R Cmd + R visual_script_editor/refresh_nodes
切换断点 F9 F9 visual_script_editor/toggle_breakpoint

Editor Output

Action name Windows, Linux macOS系统 Editor setting
复制所选项 Ctrl + C Cmd + C editor/copy_output
清空输出 Ctrl + Shift + K Cmd + Shift + K editor/clear_output

调试器

Action name Windows, Linux macOS系统 Editor setting
单步进入 F11 F11 debugger/step_into
单步跳过 F10 F10 debugger/step_over
继续 F12 F12 debugger/continue

File Dialog

Action name Windows, Linux macOS系统 Editor setting
后退 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

FileSystem Dock

Action name Windows, Linux macOS系统 Editor setting
复制路径 Ctrl + C Cmd + C filesystem_dock/copy_path
拷贝 Ctrl + D Cmd + D filesystem_dock/duplicate
删除 Del Cmd + BkSp filesystem_dock/delete

Scene Tree Dock

Action name Windows, Linux macOS系统 Editor setting
添加子节点 Ctrl + A Cmd + A scene_tree/add_child_node
批量重命名 Ctrl + F2 Cmd + F2 scene_tree/batch_rename
复制节点路径 Ctrl + C Cmd + C scene_tree/copy_node_path
删除 Del Cmd + BkSp scene_tree/delete
Force Delete Shift + Del Shift + Del scene_tree/delete_no_confirm
拷贝 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

Animation Track Editor

Action name Windows, Linux macOS系统 Editor setting
复制选中项 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

Tile Map Editor

Action name Windows, Linux macOS系统 Editor setting
查找图块 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

Tileset Editor

Action name Windows, Linux macOS系统 Editor setting
下一个坐标 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