Skip to content

samanazadi1996/Sam.FileScopedNamespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Scoped Namespace Extension

This extension is designed for Visual Studio to provide you with the capability to transform the format of C# classes in your projects. With this extension, you can convert the format of your classes to a new, modern, and updated format.

Getting Started

Here are the steps to get started

  1. Download and Install the Extension

    • Visit the extension page and follow the instructions to download and install the extension for your Visual Studio environment.
  2. Open Your Project

    • Open the project in Visual Studio where you intend to update the class formats.
  3. Right-Click on the Project

    • In the Solution Explorer, locate your project, right-click on it to open the context menu.
  4. Select "File Scoped Namespace"

    • From the context menu, select the option "File Scoped Namespace". This will initiate the process of converting all classes within the project to the new format.

Image1

By following these steps, you can efficiently apply the new format to all classes within your project using the provided extension.

Image2

In the new format

  1. Each class or method declaration is on a separate line, enhancing code readability.
  2. Semicolons (;) are used instead of curly braces ({}) for declarations and statements, which further improves code clarity.

Give a Star ⭐️

If you found this extension helpful or have integrated it into your projects, please consider giving it a star. Your support helps to promote the plugin and makes it more visible to other users. Thank you for your contribution!

About the Author

Saman Azadi

About

With this extension, you can convert the format of your classes to a new, modern, and updated format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages