|
| 1 | +## Editor Integration |
| 2 | +### Visual Studio |
| 3 | +Check out [WillFuqua.RunOnSave](https://marketplace.visualstudio.com/items?itemName=WillFuqua.RunOnSave) |
| 4 | +### Visual Studio Code |
| 5 | +Use the [official extension](https://marketplace.visualstudio.com/items?itemName=csharpier.csharpier-vscode) |
| 6 | + |
| 7 | + |
| 8 | +### Rider |
| 9 | +1. Open Settings |
| 10 | +2. Tools - File Watchers |
| 11 | +3. Add New File Watcher |
| 12 | + * File Type: C# File |
| 13 | + * Program: dotnet |
| 14 | + * Arguments: csharpier $FilePath$ |
| 15 | + * Output paths to refresh: $FilePath$ |
| 16 | + * Advanced Options - Auto-save edited files...: This should probably be off otherwise if you pause while coding csharpier will reformat the file as is. |
| 17 | + |
1 | 18 | ## Continuous Integration |
2 | 19 | Normally when using a code formatter like CSharpier, you'll want to ensure that all code that makes it to your main branch has been formatted. This can be accomplished by doing the following |
3 | 20 | 1. Set up a dotnet tool manifest file at `.config/dotnet-tools.json` with the following content. Replacing `[SpecificVersion]` with the version of CSharpier you are currently using. |
@@ -38,24 +55,3 @@ Normally when using a code formatter like CSharpier, you'll want to ensure that |
38 | 55 | |
39 | 56 | ``` |
40 | 57 |
|
41 | | - |
42 | | -## Editor Integration |
43 | | -### Visual Studio |
44 | | -Check out [WillFuqua.RunOnSave](https://marketplace.visualstudio.com/items?itemName=WillFuqua.RunOnSave) |
45 | | -### Visual Studio Code |
46 | | -An official extension is being discussed https://github.com/belav/csharpier/issues/283 \ |
47 | | -A couple of extensions have been built for personal use [CSharpier-vscode]([https://github.com/pontusntengnas/CSharpier-vscode]) and |
48 | | -[vscode-csharpier](https://github.com/saborrie/vscode-csharpier) \ |
49 | | -Using a run on save extension is another option. Check out |
50 | | - [emeraldwalk.RunOnSave](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave) or [pucelle.run-on-save](https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save) |
51 | | - |
52 | | - |
53 | | -### Rider |
54 | | -1. Open Settings |
55 | | -2. Tools - File Watchers |
56 | | -3. Add New File Watcher |
57 | | - * File Type: C# File |
58 | | - * Program: dotnet |
59 | | - * Arguments: csharpier $FilePath$ |
60 | | - * Output paths to refresh: $FilePath$ |
61 | | - * Advanced Options - Auto-save edited files...: This should probably be off otherwise if you pause while coding csharpier will reformat the file as is. |
0 commit comments