Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/irishbruse/csharp-utilities
VSCode C# Utilities Extension
https://github.com/irishbruse/csharp-utilities
csharp dotnet vscode-extension
Last synced: 22 days ago
JSON representation
VSCode C# Utilities Extension
- Host: GitHub
- URL: https://github.com/irishbruse/csharp-utilities
- Owner: IrishBruse
- License: mit
- Created: 2022-04-20T17:15:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T00:49:10.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T00:58:33.265Z (over 1 year ago)
- Topics: csharp, dotnet, vscode-extension
- Language: CSS
- Homepage:
- Size: 600 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
C# Utilities
This extension adds utilitity commands and features that I found I needed when writting C# code in vscode.
- [Commands](#commands)
- [Generate Assets from .sln](#generate-assets-from-sln)
- [Add csproj to solution](#add-csproj-to-solution)
- [Features](#features)
- [New File Template](#new-file-template)
- [Auto Generate Assets](#auto-generate-assets)# Commands
## Generate Assets from .sln
It generates all launch.json and task.json for all the projects inside the solution file.
Rerun this if you update the sln it will only add the newly added projects.
If you dont have a sln file you can do `dotnet new sln`.
You can add them from the command line using `dotnet sln add path/to/*.csproj`.
It wont replace any custom tasks or launch configs you have.We now have config option to config the auto generated config files
- `Launch Config: Console`
- `Launch Config: Internal Console Options`
- `Task Config: Problem Matcher`## Add csproj to solution
Right click on `.csproj` to add it to the solution.
Runs `dotnet sln add path/to/*.csproj` under the hood.
One done you can run the [Generate Assets from .sln](#generate-assets-from-sln)# Features
## New File Template
When creating a new .cs file it automatically generates with a template containing a file scoped
namespace and a selection of `class`, `struct`, `interface`, `enum`, `abstract class`, `interface`## Auto Generate Assets
When a folder or workspace is loaded if the config `csharp-utilities.autoGenerateAssets`
is enabled in the settings then it will run [Generate Assets from .sln](#generate-assets-from-.sln) automatically