C# GDF Tools helps you create C# files faster in VS Code and gives each new file the namespace you actually expect.
It is built for Unity-style project structures, regular C# folders, and mixed setups that use .asmdef files.
Features
Create C# files from Explorer
Right-click a folder in the Explorer and use the Add submenu to create:
New C# Class
New C# Interface
New C# Record
New C# Struct
New C# Enum
New C# MonoBehaviour
New C# ScriptableObject
Every command:
asks for a type name
creates the .cs file in the selected folder
generates the matching namespace automatically
opens the new file immediately in the editor
This is especially useful in Unity projects where you want to create scripts directly from folder structure without fixing namespaces by hand afterward.
Namespace Resolution
The default mode is hybrid:
Use the nearest applicable .asmdef name as the namespace base.
If no .asmdef applies, resolve from the file's real folder path relative to the workspace root.
Prefix the result with csharpGdf.rootNamespace when configured.