Opening a scene opens Visual Studio Code and focuses it. Bug or intended?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By godot_bugmenot

Since I am using C#, the in-built script editor is no good. I have set “Mono → Editor → External Editor” to Visual Studio Code. The problem is that now whenever I double-click a “tscn” file in the FileSystem panel, if the “tscn” file has a script, or click the “Open in Editor” button next to a sub-scene, Visual Studio Code gets launched and steals focus from the Godot Editor.

Is this a bug? If not, is there any way to stop this behaviour? I do not always want to edit the script when I open a scene.

When you open up a scene, any attached scripts are opened in the editor. Since you are using an external editor, Visual Studio is used instead. There may be a setting which stops the editor from opening any attached scripts. But I’m not at my computer ATM to check.

Ertain | 2020-06-19 11:15

:bust_in_silhouette: Reply From: juppi

Editor > Editor Settings > Text Editor > Files:
Disable “Open Dominant Script On Scene Change”

enter image description here


Personally, I think, by default, this action should not be applied when an external editor has been set. Very annoying.

godot_bugmenot | 2020-06-19 21:43