Default editor shortcuts

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

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

注解

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

General Editor Actions

Action nameWindows, LinuxmacOS系统Editor setting
打开 2D 编辑器F1Alt + 1editor/editor_2d
打开 3D 编辑器F2Alt + 2editor/editor_3d
打开脚本编辑器F3Alt + 3editor/editor_script
搜索帮助Shift + F1Alt + Spaceeditor/editor_help
专注模式按键 Ctrl + Shift + F11按键:Cmd + Ctrl + Deditor/distraction_free_mode
下一个选项卡Ctrl + TabCmd + Tabeditor/next_tab
上一个选项卡按键 Ctrl + Shift + TabCmd + Shift + Tabeditor/prev_tab
Filter FilesCtrl + Alt + PCmd + Alt + Peditor/filter_files
打开场景Ctrl + OCmd + Oeditor/open_scene
关闭场景Ctrl + Shift + WCmd + Shift + Weditor/close_scene
重新打开关闭的场景Ctrl + Shift + TCmd + Shift + Teditor/reopen_closed_scene
保存场景Ctrl + SCmd + Seditor/save_scene
Save Scene AsCtrl + Shift + SCmd + Shift + Seditor/save_scene_as
保存所有场景Ctrl + Shift + Alt + SCmd + Shift + Alt + Seditor/save_all_scenes
快速打开Shift + Alt + OShift + Alt + Oeditor/quick_open
快速打开场景Ctrl + Shift + OCmd + Shift + Oeditor/quick_open_scene
快速打开脚本Ctrl + Alt + OCmd + Alt + Oeditor/quick_open_script
撤销Ctrl + ZCmd + Zeditor/undo
重做Ctrl + Shift + ZCmd + Shift + Zeditor/redo
QuitCtrl + QCmd + Qeditor/file_quit
退出到项目列表Ctrl + Shift + QShift + Alt + Qeditor/quit_to_project_list
截屏Ctrl + F12Cmd + F12editor/take_screenshot
进入/离开全屏模式Shift + F11Cmd + Ctrl + Feditor/fullscreen_mode
运行F5Cmd + Beditor/play
暂停场景F7Cmd + Ctrl + Yeditor/pause_scene
停止F8Cmd + .editor/stop
运行场景F6Cmd + Reditor/play_scene
运行自定义场景Ctrl + Shift + F5Cmd + Shift + Reditor/play_custom_scene
展开底部面板Shift + F12Shift + F12editor/bottom_panel_expand

2D / Canvas Item Editor

Action nameWindows, LinuxmacOS系统Editor setting
放大Ctrl + =Cmd + =canvas_item_editor/zoom_plus
缩小Ctrl + -Cmd + -canvas_item_editor/zoom_minus
重置缩放Ctrl + 0Cmd + 0canvas_item_editor/zoom_reset
平移视图SpaceSpacecanvas_item_editor/pan_view
选择模式QQcanvas_item_editor/select_mode
移动模式WWcanvas_item_editor/move_mode
旋转模式EEcanvas_item_editor/rotate_mode
缩放模式SScanvas_item_editor/scale_mode
标尺模式RRcanvas_item_editor/ruler_mode
使用吸附Shift + SShift + Scanvas_item_editor/use_smart_snap
使用网格吸附Shift + GShift + Gcanvas_item_editor/use_grid_snap
网格步进乘以 2Num Num canvas_item_editor/multiply_grid_step
网格步进除以 2Num /Num /canvas_item_editor/divide_grid_step
总是显示网格GGcanvas_item_editor/show_grid
显示辅助信息HHcanvas_item_editor/show_helpers
显示辅助线YYcanvas_item_editor/show_guides
居中显示所选项FFcanvas_item_editor/center_selection
完整显示所选项Shift + FShift + Fcanvas_item_editor/frame_selection
预览画布比例Ctrl + Shift + PCmd + Shift + Pcanvas_item_editor/preview_canvas_scale
插入关键帧InsInscanvas_item_editor/anim_insert_key
插入关键帧(已有轨道)Ctrl + InsCmd + Inscanvas_item_editor/anim_insert_key_existing_tracks
Make Custom Bones from NodesCtrl + Shift + BCmd + Shift + Bcanvas_item_editor/skeleton_make_bones
清除姿势Shift + KShift + Kcanvas_item_editor/anim_clear_pose

3D/空间编辑器

Action nameWindows, LinuxmacOS系统Editor setting
切换自由观看Shift + FShift + Fspatial_editor/freelook_toggle
自由观看向左AAspatial_editor/freelook_left
自由观看向右DDspatial_editor/freelook_right
自由观看向前WWspatial_editor/freelook_forward
自由观看向后SSspatial_editor/freelook_backwards
自由观看向上EEspatial_editor/freelook_up
自由观看向下QQspatial_editor/freelook_down
自由视图速度调整ShiftShiftspatial_editor/freelook_speed_modifier
缓慢自由视图速度AltAltspatial_editor/freelook_slow_modifier
选择模式QQspatial_editor/tool_select
移动模式WWspatial_editor/tool_move
旋转模式EEspatial_editor/tool_rotate
缩放模式RRspatial_editor/tool_scale
使用本地空间TTspatial_editor/local_coords
使用吸附YYspatial_editor/snap
吸附物体到地面PgDownPgDownspatial_editor/snap_to_floor
俯视图Num 7Num 7spatial_editor/top_view
仰视图Alt + Num 7Alt + Num 7spatial_editor/bottom_view
正视图Num 1Num 1spatial_editor/front_view
后视图Alt + Num 1Alt + Num 1spatial_editor/rear_view
右视图Num 3Num 3spatial_editor/right_view
左视图Alt + Num 3Alt + Num 3spatial_editor/left_view
切换透视图/正交视图Num 5Num 5spatial_editor/switch_perspective_orthogonal
插入动画帧KKspatial_editor/insert_anim_key
聚焦原点OOspatial_editor/focus_origin
聚焦选中项FFspatial_editor/focus_selection
将变换与视图对齐Ctrl + Alt + MCmd + Alt + Mspatial_editor/align_transform_with_view
将旋转与视图对齐Ctrl + Alt + FCmd + Alt + Fspatial_editor/align_rotation_with_view
1 个视口Ctrl + 1Cmd + 1spatial_editor/1_viewport
2 个视口Ctrl + 2Cmd + 2spatial_editor/2_viewports
2 个视口(备选)Ctrl + Alt + 2Cmd + Alt + 2spatial_editor/2_viewports_alt
3 个视口Ctrl + 3Cmd + 3spatial_editor/3_viewports
3 个视口(备选)Ctrl + Alt + 3Cmd + Alt + 3spatial_editor/3_viewports_alt
4 个视口Ctrl + 4Cmd + 4spatial_editor/4_viewports

Text Editor

Action nameWindows, LinuxmacOS系统Editor setting
剪切Ctrl + XCmd + Xscript_text_editor/cut
复制Ctrl + CCmd + Cscript_text_editor/copy
粘贴Ctrl + VCmd + Vscript_text_editor/paste
全选Ctrl + ACmd + Ascript_text_editor/select_all
查找Ctrl + FCmd + Fscript_text_editor/find
查找下一项F3Cmd + Gscript_text_editor/find_next
查找上一个Shift + F3Cmd + Shift + Gscript_text_editor/find_previous
在文件中查找Ctrl + Shift + FCmd + Shift + Fscript_text_editor/find_in_files
替换Ctrl + RAlt + Cmd + Fscript_text_editor/replace
在文件中替换Ctrl + Shift + RCmd + Shift + Rscript_text_editor/replace_in_files
撤销Ctrl + ZCmd + Zscript_text_editor/undo
重做Ctrl + YCmd + Yscript_text_editor/redo
向上移动Alt + Up ArrowAlt + Up Arrowscript_text_editor/move_up
向下移动Alt + Down ArrowAlt + Down Arrowscript_text_editor/move_down
删除行Ctrl + Shift + KCmd + Shift + Kscript_text_editor/delete_line
切换注释Ctrl + KCmd + Kscript_text_editor/toggle_comment
折叠/展开行Alt + FAlt + Fscript_text_editor/toggle_fold_line
复制到下一行Ctrl + DCmd + Shift + Cscript_text_editor/clone_down
符号自动补全Ctrl + SpaceCtrl + Spacescript_text_editor/complete_symbol
所选内容求值Ctrl + Shift + ECmd + Shift + Escript_text_editor/evaluate_selection
移除尾部空格Ctrl + Alt + TCmd + Alt + Tscript_text_editor/trim_trailing_whitespace
大写Shift + F4Shift + F4script_text_editor/convert_to_uppercase
小写Shift + F5Shift + F5script_text_editor/convert_to_lowercase
首字母大写Shift + F6Shift + F6script_text_editor/capitalize
将缩进转为空格Ctrl + Shift + YCmd + Shift + Yscript_text_editor/convert_indent_to_spaces
将缩进转为制表符Ctrl + Shift + ICmd + Shift + Iscript_text_editor/convert_indent_to_tabs
自动缩进Ctrl + ICmd + Iscript_text_editor/auto_indent
切换书签Ctrl + Alt + BCmd + Alt + Bscript_text_editor/toggle_bookmark
转到下一个书签Ctrl + BCmd + Bscript_text_editor/goto_next_bookmark
转到上一个书签Ctrl + Shift + BCmd + Shift + Bscript_text_editor/goto_previous_bookmark
转到函数Ctrl + Alt + FCtrl + Cmd + Jscript_text_editor/goto_function
转到行Ctrl + LCmd + Lscript_text_editor/goto_line
设置/移除断点F9Cmd + Shift + Bscript_text_editor/toggle_breakpoint
移除所有断点Ctrl + Shift + F9Cmd + Shift + F9script_text_editor/remove_all_breakpoints
转到下一个断点Ctrl + .Cmd + .script_text_editor/goto_next_breakpoint
转到上一个断点Ctrl + ,Cmd + ,script_text_editor/goto_previous_breakpoint
上下文帮助Alt + F1Alt + Shift + Spacescript_text_editor/contextual_help

脚本编辑器

Action nameWindows, LinuxmacOS系统Editor setting
查找Ctrl + FCmd + Fscript_editor/find
查找下一项F3F3script_editor/find_next
查找上一个Shift + F3Shift + F3script_editor/find_previous
在文件中查找Ctrl + Shift + FCmd + Shift + Fscript_editor/find_in_files
向上移动Shift + Alt + Up ArrowShift + Alt + Up Arrowscript_editor/window_move_up
向下移动Shift + Alt + Down ArrowShift + Alt + Down Arrowscript_editor/window_move_down
Next ScriptCtrl + Shift + .Cmd + Shift + .script_editor/next_script
Previous ScriptCtrl + Shift + ,Cmd + Shift + ,script_editor/prev_script
重新打开关闭的脚本Ctrl + Shift + TCmd + Shift + Tscript_editor/reopen_closed_script
保存Ctrl + Alt + SCmd + Alt + Sscript_editor/save
全部保存Ctrl + Shift + Alt + SCmd + Shift + Alt + Sscript_editor/save_all
软重载脚本Ctrl + Shift + RCmd + Shift + Rscript_editor/reload_script_soft
后退Alt + Left ArrowAlt + Left Arrowscript_editor/history_previous
前进Alt + Right ArrowAlt + Right Arrowscript_editor/history_next
关闭Ctrl + WCmd + Wscript_editor/close_file
运行Ctrl + Shift + XCmd + Shift + Xscript_editor/run_file
开启/关闭脚本面板Ctrl + \Cmd + \script_editor/toggle_scripts_panel
放大Ctrl + =Cmd + =script_editor/zoom_in
缩小Ctrl + -Cmd + -script_editor/zoom_out
重置缩放Ctrl + 0Cmd + 0script_editor/reset_zoom

Visual Script Editor

Action nameWindows, LinuxmacOS系统Editor setting
查找节点类型Ctrl + FCmd + Fvisual_script_editor/find_node_type
复制节点Ctrl + CCmd + Cvisual_script_editor/copy_nodes
剪切节点Ctrl + XCmd + Xvisual_script_editor/cut_nodes
粘贴节点Ctrl + VCmd + Vvisual_script_editor/paste_nodes
删除选中项DelCmd + BkSpvisual_script_editor/delete_selected
生成函数Ctrl + GCmd + Gvisual_script_editor/create_function
编辑成员Ctrl + ECmd + Evisual_script_editor/edit_member
刷新节点Ctrl + RCmd + Rvisual_script_editor/refresh_nodes
设置/移除断点F9F9visual_script_editor/toggle_breakpoint

Editor Output

Action nameWindows, LinuxmacOS系统Editor setting
复制所选项Ctrl + CCmd + Ceditor/copy_output
清空输出Ctrl + Shift + KCmd + Shift + Keditor/clear_output

调试器

Action nameWindows, LinuxmacOS系统Editor setting
单步进入F11F11debugger/step_into
单步跳过F10F10debugger/step_over
继续F12F12debugger/continue

File Dialog

Action nameWindows, LinuxmacOS系统Editor setting
后退Alt + Left ArrowAlt + Left Arrowfile_dialog/go_back
前进Alt + Right ArrowAlt + Right Arrowfile_dialog/go_forward
上一级Alt + Up ArrowAlt + Up Arrowfile_dialog/go_up
刷新F5F5file_dialog/refresh
切换显示隐藏文件Ctrl + HCmd + Hfile_dialog/toggle_hidden_files
开关收藏Alt + FAlt + Ffile_dialog/toggle_favorite
切换模式Alt + VAlt + Vfile_dialog/toggle_mode
创建文件夹Ctrl + NCmd + Nfile_dialog/create_folder
删除DelCmd + BkSpfile_dialog/delete
聚焦路径Ctrl + DCmd + Dfile_dialog/focus_path
向上移动收藏Ctrl + Up ArrowCmd + Up Arrowfile_dialog/move_favorite_up
向下移动收藏Ctrl + Down ArrowCmd + Down Arrowfile_dialog/move_favorite_down

文件系统面板

Action nameWindows, LinuxmacOS系统Editor setting
复制路径Ctrl + CCmd + Cfilesystem_dock/copy_path
拷贝Ctrl + DCmd + Dfilesystem_dock/duplicate
删除DelCmd + BkSpfilesystem_dock/delete

Scene Tree Dock

Action nameWindows, LinuxmacOS系统Editor setting
添加子节点Ctrl + ACmd + Ascene_tree/add_child_node
批量重命名Ctrl + F2Cmd + F2scene_tree/batch_rename
复制节点路径Ctrl + CCmd + Cscene_tree/copy_node_path
删除DelCmd + BkSpscene_tree/delete
Force DeleteShift + DelShift + Delscene_tree/delete_no_confirm
拷贝Ctrl + DCmd + Dscene_tree/duplicate
向上移动Ctrl + Up ArrowCmd + Up Arrowscene_tree/move_up
向下移动Ctrl + Down ArrowCmd + Down Arrowscene_tree/move_down

Animation Track Editor

Action nameWindows, LinuxmacOS系统Editor setting
复制选中项Ctrl + DCmd + Danimation_editor/duplicate_selection
复制并转置Ctrl + Shift + DCmd + Shift + Danimation_editor/duplicate_selection_transposed
删除选中项DelCmd + BkSpanimation_editor/delete_selection
前往下一步Ctrl + Right ArrowCmd + Right Arrowanimation_editor/goto_next_step
返回上一步Ctrl + Left ArrowCmd + Left Arrowanimation_editor/goto_prev_step

Tile Map Editor

Action nameWindows, LinuxmacOS系统Editor setting
查找图块Ctrl + FCmd + Ftile_map_editor/find_tile
选择图块IItile_map_editor/pick_tile
绘制图块PPtile_map_editor/paint_tile
油漆桶填充GGtile_map_editor/bucket_fill
转置TTtile_map_editor/transpose
水平翻转XXtile_map_editor/flip_horizontal
垂直翻转ZZtile_map_editor/flip_vertical
向左旋转AAtile_map_editor/rotate_left
向右旋转SStile_map_editor/rotate_right
清除变换WWtile_map_editor/clear_transform
选择MMtile_map_editor/select
剪切选中项Ctrl + XCmd + Xtile_map_editor/cut_selection
复制所选项Ctrl + CCmd + Ctile_map_editor/copy_selection
擦除选中项DelCmd + BkSptile_map_editor/erase_selection

Tileset Editor

Action nameWindows, LinuxmacOS系统Editor setting
下一个坐标PgDownPgDowntileset_editor/next_shape
上一个坐标PgUpPgUptileset_editor/previous_shape
区域模式11tileset_editor/editmode_region
碰撞模式22tileset_editor/editmode_collision
遮挡模式33tileset_editor/editmode_occlusion
导航模式44tileset_editor/editmode_navigation
位掩码模式55tileset_editor/editmode_bitmask
优先模式66tileset_editor/editmode_priority
图标模式77tileset_editor/editmode_icon
Z 索引模式88tileset_editor/editmode_z_index