You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Add support for type hints in non-default script editor templates
This also refactors template processing to avoid repetition.
This closes #27074.
(cherry picked from commit 00799fc8c2)
This commit is contained in:
committed by
Rémi Verschelde
parent
72b4844d42
commit
bd2e707e2f
@@ -675,14 +675,14 @@ bool EditorSettings::_save_text_editor_theme(String p_file) {
|
||||
static Dictionary _get_builtin_script_templates() {
|
||||
Dictionary templates;
|
||||
|
||||
//No Comments
|
||||
// No Comments
|
||||
templates["no_comments.gd"] =
|
||||
"extends %BASE%\n"
|
||||
"\n"
|
||||
"func _ready():\n"
|
||||
"func _ready()%VOID_RETURN%:\n"
|
||||
"%TS%pass\n";
|
||||
|
||||
//Empty
|
||||
// Empty
|
||||
templates["empty.gd"] =
|
||||
"extends %BASE%"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user