Last active
November 29, 2022 12:03
-
-
Save Wanchai/2dfa453fd7aa9b40182f2a7ecd2b7ce1 to your computer and use it in GitHub Desktop.
C# snippets for Godot in Visual Studio Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Get Node Godot": { | |
"prefix": "getnode", | |
"body": [ | |
"${1:type} ${2:varName};", | |
"${2:varName} = GetNode<${1:type}>(\"${3:nodeName}\");" | |
], | |
"description": "Get Node in Godot" | |
}, | |
"Godot Signal": { | |
"prefix": "signal", | |
"body": [ | |
"[Signal]", | |
"public delegate void ${1}EventHandler(${2});", | |
"EmitSignal(SignalName.${1});", | |
"${1} += ${3}" | |
], | |
"description": "Signal Emitting, full code in Godot" | |
}, | |
"Godot Print": { | |
"prefix": "gdprint", | |
"body": ["GD.Print(${1});"], | |
"description": "Get Node in Godot" | |
}, | |
"Comment": { | |
"prefix": "comment", | |
"body": ["/// <summary>${1}</summary>"], | |
"description": "C# comments" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment