StevenJV,
@StevenJV@curmudgeon.cafe avatar

Am I the only one who wants dotnet format to be usable against just a single file, rather than [<PROJECT | SOLUTION>] ? I'm only working in one file, I really don't want 732 files changed in this commit. We'll get to them when we get to them. #dotnet

bradwilson,
@bradwilson@mastodon.social avatar

@StevenJV I am thoroughly displeased with "dotnet format" and have continued to use "dotnet-format" instead (despite the fact that it's sorely out of date w/ C# versions).

I don't know if it can do just one file, but it can definitely do just one folder.

https://www.nuget.org/packages/dotnet-format

JoeyRobichaud,
@JoeyRobichaud@hachyderm.io avatar

@bradwilson @StevenJV

Typing from memory, but i believe that you all want ‘dotnet format whitespace —folder —include {relative file path}’. easy peasy ;)

bradwilson,
@bradwilson@mastodon.social avatar

@JoeyRobichaud @StevenJV Just FYI, dotnet format does not support --folder, that's the older dotnet-format.

The performance difference between the two is staggering to the point of dotnet format being unusable.

KirillOsenkov,
@KirillOsenkov@mastodon.social avatar
bradwilson,
@bradwilson@mastodon.social avatar

@KirillOsenkov @JoeyRobichaud @StevenJV Seems like I should investigate using CSharpier... Thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • dotnet
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines