CSharpier Formatter for Visual Studio CodeCSharpier is an opinionated code formatter for c#. It uses Roslyn to parse your code and re-prints it using its own rules. The printing process was ported from prettier but has evolved over time. InstallationInstall through VS Code extensions. Search for Can also be installed in VS Code: Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
UsageKeyboard ShortcutsVisual Studio Code provides default keyboard shortcuts for code formatting. You can learn about these for each platform in the VS Code documentation. If you don't like the defaults, you can rebind Format On SaveRespects Found in the settings at Text Editor | Formatting | Format on Save You can turn on format-on-save on a per-language basis by scoping the setting:
LimitationsFormat Selection is not supported. |