[Dev file preview]Add wrap text setting (#16486)

* Push (not working)

* Add Context menu

* push

* Adress feedback

* Update installer

* Fix build

* Fix warnings
This commit is contained in:
Aaron Junker
2022-03-25 18:29:33 +01:00
committed by GitHub
parent 4aadaf9bf1
commit 79227b9db6
8 changed files with 123 additions and 21 deletions

View File

@@ -80,6 +80,23 @@ namespace Microsoft.PowerToys.Settings.UI.Library
}
}
private bool monacoPreviewWordWrap = true;
[JsonPropertyName("monaco-previewer-toggle-setting-word-wrap")]
[JsonConverter(typeof(BoolPropertyJsonConverter))]
public bool EnableMonacoPreviewWordWrap
{
get => monacoPreviewWordWrap;
set
{
if (value != monacoPreviewWordWrap)
{
LogTelemetryEvent(value);
monacoPreviewWordWrap = value;
}
}
}
private bool enablePdfPreview = true;
[JsonPropertyName("pdf-previewer-toggle-setting")]