An open API service indexing awesome lists of open source software.

https://github.com/yracnet/dotnet-format-command


https://github.com/yracnet/dotnet-format-command

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

          

# Dotnet Format Command

Right-click `.cs` files or folders to run `dotnet format` directly from the context menu.

## Features

- πŸ“ Format C# files using `dotnet format`
- πŸ“ Works on single files or entire folders
- βš™οΈ Automatically creates a `.editorconfig` if none is found

## Requirements

You must have the [.NET SDK](https://dotnet.microsoft.com/download) installed and accessible via the `dotnet` command.

## Usage

- Right-click a `.cs` file or folder in the **Explorer** or **Editor**
- Select:
- **RUN: Dotnet Format**
- **RUN: Dotnet Format**

That’s it β€” the command runs `dotnet format --include ` in the background.

## Note

If no `.editorconfig` file is found in your project root, one will be created automatically with default formatting rules.