JetBrains / godot-support

Apache License 2.0
403 stars 26 forks source link

Add documentation for "External" editor settings with gdscript-only projects #226

Open eli-crow opened 1 month ago

eli-crow commented 1 month ago

I have been unable to find documentation for how to get Godot to play nice with rider on gdscript-only projects. Dotnet projects open fine because (i think) rider identifies the project folder by the solution file / csproj file.

However, when opening a .gd file in gdscript-only projects when rider isn't launched yet, it opens the script's containing folder instead.

The following command line arguments added to "Text Editor / External / Exec Flags" provide the desired behavior where Rider will open the Godot project folder, then navigate to the file and line number.

{project} {file} --line {line} 

So far I have only tested this with opening a file from Godot. I am unsure if it behaves correctly with debugging features

ivanskorikov commented 1 month ago

Currently, the only way to configure this correctly is to specify the exec flags as described in the official docs.

Will be resolved by godotengine/godot-proposals#10631.

eli-crow commented 1 month ago

It may be good to leave some breadcrumbs back to the docs somewhere. Otherwise, feel free to close the issue. That's what I was looking for. Thanks.