Reputation: 3281
I went through samples and other questions, people are mostly using Workspaces
. All I have is a single file and no workspace, how can I format it using Formatter
static methods ?
Upvotes: 0
Views: 786
Reputation: 11615
You can either create a Solution
and add the file to a project in that Solution
(using Solution.Create()
, or else use the basic formatting provided by NormalizeWhitespace()
.
Upvotes: 2