godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.14k stars 93 forks source link

Easier way to open script in external editor while keeping option disabled #2288

Open mg979 opened 3 years ago

mg979 commented 3 years ago

Describe the project you are working on

Just started using Godot

Describe the problem or limitation you are having in your project

I don't like to set external editor in the editor settings, because signal methods are added only if using built-in editor, and the built-in editor is much better for debugging. A the same time I don't use it for actual editing.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

I'd like the possibility to press shift+mouse click on the script icon, so that it opens the script in the external editor rather than in the built-in editor, respecting the parameters, even if the checkbox is disabled. So that I can use both the built-in editor and the external editor, depending on what I must do.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

mouse click on script icon -> open in built-in editor Shift + mouse click on script icon -> open in external editor (do as if use external editor was enabled)

If this enhancement will not be used often, can it be worked around with a few lines of script?

no

Is there a reason why this should be core and not an add-on in the asset library?

I don't know if it can be implemented in an asset

YuriSizov commented 3 years ago

because signal methods are added only if using built-in editor

You seem to be using the GUI for connecting signals, but you can do that fully in code and it will work in any code editor that supports Godot's language server.

Calinou commented 3 years ago

because signal methods are added only if using built-in editor

This will be fixed by https://github.com/godotengine/godot/pull/42416 if it's merged.

mg979 commented 3 years ago

@pycbouh ok, but the better debugging is still a valid and much more important reason.

mg979 commented 3 years ago

Anyway I realized that scripts are more often opened from some tree view rather than with the icon. Maybe a button to open them directly with the external editor can be made with a plugin, I don't know.