diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..e2369a7 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "godot", + "type": "godot", + "request": "launch", + "project": "${workspaceFolder}", + "port": 6007, + "address": "127.0.0.1", + "launch_game_instance": true, + "launch_scene": true + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4272f1a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "godot_tools.editor_path": "d:\\Program\\Godot_v3.3.3-stable_win64.exe\\Godot_v3.3.3-stable_win64.exe" +} \ No newline at end of file diff --git a/doc/editor-setup.md b/doc/editor-setup.md new file mode 100644 index 0000000..3087277 --- /dev/null +++ b/doc/editor-setup.md @@ -0,0 +1,22 @@ +# godot 可以调用外部的IDE进行脚本的编辑,这里记录一下相关的配置 + +- Godot 做开发的时候发现 Godot 原生编码环境对于代码提示、字段补全等功能经常时令时不灵,而且提示机制很迷,经常出现打完后不提示或者提示错误的情况,极度的不智能。 +- 恰好官方就支持 VSCode 作为第三方编辑器,而且支持 Debug 调试功能,这里记录一下配置流程。 + +- 进入 Editor - EditorSetting - Text Editor - External,配置好 “Exec Path” 和 “Exec Flags” 后勾选 “Use External Editor” + +- vscode 编辑器设置 + +``` +Editor中设置Text Editor -> External +/Programs/Microsoft VS Code/Code.exe +{project} --goto {file}:{line}:{col} +``` + +- idea 编辑器设置 + +``` +Editor中设置Text Editor -> External +C:/Program Files/JetBrains/IntelliJ +{project} {file}:{line} +```