/godot-snippets-vscode-csharp

Godot code snippets for C# in VS Code

MIT LicenseMIT

Godot Snippets for C#

Showcase

Provides a set of code snippets for Godot in C#.

Installation

Visual Studio Marketplace

Quick start

In any .cs files, start typing a prefix such as ready.

Suggestions

Press tab to select the snippet from the suggestions.

Ready

Available snippets

Utilities

Prefix Body

print

GD.Print();

Exported properties

Prefix Body

export

[Export] private Node _node;

exportg

[ExportGroup("")]

exportsg

[ExportSubgroup("")]

exportc

[ExportCategory("")]

Lifecycle virtual methods

Prefix Body

entertree

public override void _EnterTree() {
    base._EnterTree();
}

ready

public override void _Ready() {
    base._Ready();
}

process

public override void _Process(double delta) {
    base._Process(delta);
}

processp

public override void _PhysicsProcess(double delta) {
    base._PhysicsProcess(delta);
}

exittree

public override void _ExitTree() {
    base._ExitTree();
}

Input virtual methods

Prefix Body

input

public override void _Input(InputEvent @event) {
    base._Input(@event);
}

inputs

public override void _ShortcutInput(InputEvent @event) {
    base._ShortcutInput(@event);
}

inputu

public override void _UnhandledInput(InputEvent @event) {
    base._UnhandledInput(@event);
}

inputg

public override void _GuiInput(InputEvent @event) {
    base._GuiInput(@event);
}

Other virtual methods

Prefix Body

noti

public override void _Notification(int what) {
    base._Notification(what);
}

draw

public override void _Draw() {
    base._Draw();
}