Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>New CS fileNew to Visual Studio Code? Get it now.
New CS file

New CS file

bbonkr

|
265 installs
| (0) | Free
New cs file for dotnet
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

New CS File

Latest release

Build and tag create release Publish vscode extension

Features

Create new cs file with namespace.

  • Namespace generates from csproj file name or references DefaultNamespace element in csproj file.

example

Namespace generates

Namespace composites project file (.csproj) name and directory structure where file created.

The base of namespace is decided with project file name or DefaultNamespace in project file.

Limitations

Directory and file name in your workspace should be alphanumeric characters.

Release Notes

Please see CHANGELOG.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft