Skip to content

Commit

Permalink
change default options: use tabs, format comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Pizzaandy committed Dec 8, 2023
1 parent 0b6e8ee commit 5b40f9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gobo.Playground/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<input type="checkbox"
class="form-check-input"
id="useTabs"
checked="@_formatOptions.UseTabs"
value="@_formatOptions.UseTabs" @oninput="@OnUseTabsChange" />
<label for="useTabs" class="text-light form-check-label">Use Tabs</label>
</div>
Expand All @@ -36,6 +37,7 @@
<input type="checkbox"
class="form-check-input"
id="formatComments"
checked="@_formatOptions.FormatComments"
value="@_formatOptions.FormatComments" @oninput="@OnFormatCommentsChange" />
<label for="formatComments" class="text-light form-check-label">Format Comments</label>
</div>
Expand Down
4 changes: 2 additions & 2 deletions Gobo/FormatOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ public enum BraceStyle

public class FormatOptions
{
public bool UseTabs { get; set; } = false;
public bool UseTabs { get; set; } = true;
public int TabWidth { get; set; } = 4;
public int Width { get; set; } = 90;
public bool FormatComments { get; set; } = false;
public bool FormatComments { get; set; } = true;

[JsonIgnore]
public BraceStyle BraceStyle { get; set; } = BraceStyle.SameLine;
Expand Down

0 comments on commit 5b40f9b

Please sign in to comment.