Godot-proposals: Add a setting to change the script editor autocomplete shortcut (tab, enter, tab or enter)

Created on 19 Jun 2020  路  2Comments  路  Source: godotengine/godot-proposals

Describe the project you are working on:

This applies to all projects

Describe the problem or limitation you are having in your project:

Often times I will try to make a newline, and accidentally accept an autocomplete suggestion

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

Allowing the user to change the shortcut to accept autcomplete can let them avoid this issue by setting it to tab only, or whatever other shortcut they are comfortable with, instead of enter or tab.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:

Adding an option for "autocomplete accept" to the shortcuts menu

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

No, it's built into the editor

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

It's a core part of the editor

editor

Most helpful comment

For the record, this is currently hardcoded here:

https://github.com/godotengine/godot/blob/e773664f26ced3587a5a5d9caa494b96df00e3f4/scene/gui/text_edit.cpp#L2638

Since this isn't editor-specific code, we should avoid adding yet more editor-specific code to it. Therefore, this change will probably have to wait for the TextEdit refactor.

All 2 comments

This should definitely be added. I'd prefer using only Tab to accept autocomplete suggestions myself.

For the record, this is currently hardcoded here:

https://github.com/godotengine/godot/blob/e773664f26ced3587a5a5d9caa494b96df00e3f4/scene/gui/text_edit.cpp#L2638

Since this isn't editor-specific code, we should avoid adding yet more editor-specific code to it. Therefore, this change will probably have to wait for the TextEdit refactor.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WilliamTambellini picture WilliamTambellini  路  3Comments

wijat picture wijat  路  3Comments

IllusiveS picture IllusiveS  路  3Comments

PLyczkowski picture PLyczkowski  路  3Comments

KoBeWi picture KoBeWi  路  3Comments