Skip to content

Instantly share code, notes, and snippets.

@Wanchai
Last active November 29, 2022 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wanchai/2dfa453fd7aa9b40182f2a7ecd2b7ce1 to your computer and use it in GitHub Desktop.
Save Wanchai/2dfa453fd7aa9b40182f2a7ecd2b7ce1 to your computer and use it in GitHub Desktop.
C# snippets for Godot in Visual Studio Code
{
"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