Can't open a script in Godot

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

I’m trying to use Godot to open a .cs file. It just goes to find VS Code on my system instead, despite the fact I turned off external editors and don’t have VS Code anymore.
This is an error message that occurs when I try to open a script:
This is the error message

How do I get rid of this?

:bust_in_silhouette: Reply From: deaton64

Is it under Editor/Text Editor/External - Use External Editor ?

Like this

Nope. As I said, Use External Editor is toggled off.

mobilinn | 2020-04-28 21:17

Ah yes so you did… sorry…

Maybe the setting is in the config file…

For me on Windows, they are saved here: C:\Users\david\AppData\Roaming\Godot\editor_settings-3.tres

You could always rename that file and start again.

deaton64 | 2020-04-28 22:03

I use Linux, Linux Mint.

mobilinn | 2020-04-28 22:05

Yes, but you should still have that file or one like it somewhere in your file system.

deaton64 | 2020-04-28 23:19

Found it. It’s still toggled off.

mobilinn | 2020-04-29 16:12

ah bugger…
no idea then :slight_smile: I’m a Linux CLI kinda guy…

Could be a bug, might be worth raising an issue…

Or rename the Godot directory that the editor_settings-3.tres file is in and run Godot again and see what happens.
On Windows the Godot directory gets re-created. If that happens you can copy the directories over you need, such as projects etc… and hope it still works.

deaton64 | 2020-04-29 16:22

Deleted everything labeled “Godot” on my system. It fixed the problem.
Now I can finally use the built-in text editor and Atom as well.

mobilinn | 2020-04-29 16:49

Excellent glad it works.

deaton64 | 2020-04-29 17:54

:bust_in_silhouette: Reply From: mobilinn

Answering my own question here. All I had to do was delete everything labeled Godot in my file system then re-install it. Problem solved.