You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying an external code editor, one has the option to do so by specifying an executable path, and the arguments to be passed to the given executable.
While these arguments seem to work fine when specifying an external text editor via Editor > Editor Settings > Text Editor > External, as is described in the documentation above , only the {file}, {line} and {col} placeholders are implemented for external c# editor, configured under Editor > Editor Settings > Dotnet > Editor (which seems to be undocumented), while the {project} placeholder is left as is. In fact, one can see that, while it is implemented for the external text editor at
Go to Editor > Editor Settings > Dotnet > Editor and specify External Editor as custom, and pass in the path to some external editor, like Visual Studio Code
In Custom Exec Path Args, put in some argument string containing {project} (For vscode, the docs give as an example {project} --goto {file}:{line}:{col}
Open some c# script
Once vscode opens, one will see that, instead of opening the project folder, as one might expect, vscode opens a file with a new file called {project}, since the placeholder was passed directly as an argument, and not replaced with the project path
Minimal reproduction project
N/a (This bug is about an editor setting, which isn't stored as part of a project, so a minimum reproduction project isn't possible)
The text was updated successfully, but these errors were encountered:
Implements the {project} placeholder, available when setting an external editor
in the project settings, via Editor > Editor Settings > Text Editor > External
for the c# external editor, under Editor > Editor Settings > Dotnet > Editor,
This allows passing the project folder as a command line argument when using a
custom external editor that isn't one of the available options.
Fixesgodotengine#81845
YuriSizov
pushed a commit
to YuriSizov/godot
that referenced
this issue
Jan 23, 2024
Implements the {project} placeholder, available when setting an external editor
in the project settings, via Editor > Editor Settings > Text Editor > External
for the c# external editor, under Editor > Editor Settings > Dotnet > Editor,
This allows passing the project folder as a command line argument when using a
custom external editor that isn't one of the available options.
Fixesgodotengine#81845
(cherry picked from commit c01a478)
Godot version
4.1.1 (Still present on 4df80b0 )
System information
Manjaro Linux, gtx 1060
Issue description
When specifying an external code editor, one has the option to do so by specifying an executable path, and the arguments to be passed to the given executable.
Those arguments can contain certain placeholders (described on https://github.com/godotengine/godot-docs/blob/8a08321d93219228107efac3a8a19594d1ca06ab/tutorials/editor/external_editor.rst?plain=1#L24 ), which get replaced by specific information from the engine when the external editor is launched.
While these arguments seem to work fine when specifying an external text editor via
Editor > Editor Settings > Text Editor > External
, as is described in the documentation above , only the{file}
,{line}
and{col}
placeholders are implemented for external c# editor, configured underEditor > Editor Settings > Dotnet > Editor
(which seems to be undocumented), while the{project}
placeholder is left as is. In fact, one can see that, while it is implemented for the external text editor atgodot/editor/plugins/script_editor_plugin.cpp
Lines 2314 to 2318 in 4df80b0
godot/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs
Lines 228 to 231 in 4df80b0
Steps to reproduce
Editor > Editor Settings > Dotnet > Editor
and specify External Editor as custom, and pass in the path to some external editor, like Visual Studio Code{project} --goto {file}:{line}:{col}
Once vscode opens, one will see that, instead of opening the project folder, as one might expect, vscode opens a file with a new file called
{project}
, since the placeholder was passed directly as an argument, and not replaced with the project pathMinimal reproduction project
N/a (This bug is about an editor setting, which isn't stored as part of a project, so a minimum reproduction project isn't possible)
The text was updated successfully, but these errors were encountered: