CSharpier
Small Sublime Text plugin that adds a command to run dotnet-csharpier on C# files
Details
Installs
- Total 215
- Win 149
- Mac 28
- Linux 38
Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 |
Mac | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Linux | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text CSharpier plugin
Small plugin that adds a command to run dotnet-csharpier
on C# files.
CSharpier is an opinionated code formatter for C#.
You can invoke the formatter manually from the command menu, “CSharpier: format file”. You can also configure the plugin to run automatically on save by editing the package settings (Preferences/Package Settings/CSharpier):
{
"format_on_save": true,
}
Note that the command is only visible, and runs on save, when used on C# files.
Thanks to @thijsdezoete's isort plugin for providing a convenient starting point!
Install
To install csharpier: dotnet tool install csharpier -g
.
dotnet
is part of the .NET CLI, included in the .NET SDK.
Package Control
Hopefully soon: in @wbond's Package Control. Until then, open the command menu (default ctrl-shift-p
), choose Package Control: Add Repository
and paste in the repo URL: https://github.com/mkonstapel/sublime-text-csharpier-plugin
.
To install the package, choose Package Control: Install Package
from the command menu and search for csharpier
.
Manual package installation
Clone this repository from your Sublime packages directory:
Linux
$ cd ~/.config/sublime-text/Packages
$ git clone https://github.com/mkonstapel/sublime-text-csharpier-plugin
OSX (untested)
$ cd "~/Library/Application Support/Sublime Text/Packages"
$ git clone https://github.com/mkonstapel/sublime-text-csharpier-plugin
Windows
$ cd "%APPDATA%\Sublime Text\Packages"
$ git clone https://github.com/mkonstapel/sublime-text-csharpier-plugin