C# Stretch
Simple VSCode extension to improve and stretch c# experience
Features
Create New Class
You can create a class from the context menu with modern C# syntax and namespace.
namespace TestMake.Features.PDF;
public class NewClass
{
}
Create Interface
namespace TestMake.Features.PDF;
public interface NewInterface
{
}
Create Old Class
namespace TestMake.Features.PDF
{
public class OldClass
{
}
}
Create Old Interface
namespace TestMake.Features.PDF
{
public interface OldInterface
{
}
}
Namespace
The namespace can be derived from folder path.
Additionally the root namespace can also be specified in the .csproj file.
<RootNamespace>TestMake</RootNamespace>
Fill Namespace
Fix Namespace
Settings
- Can disable context menu completely.
- Can toggle context menu options on and off
Why This Extension
- Lightweight and super simple
- No external dependencies
- Private (No Data collection or telemetry)
- Modern C# syntax (As well as option to enable old namespace syntax)
- Context menu to create C# files only visible after C# language activation (This drove me to create this extension)
- Context menu settings to show and hide items
Special Thanks
Greatly inspired and using code from:
C# Namespace Autocompletion
C# Extensions
C# Helper
| |