0 votes

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.

in Engine by (27 points)

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.

1 Answer

0 votes
Best answer

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

enter image description here

by (412 points)
selected by

Thanks.

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.