Skip to content

Add a word wrap button to the content viewer pane - #1291

Merged
clairernovotny merged 1 commit into
NuGetPackageExplorer:mainfrom
ltrzesniewski:word-wrap
Jun 23, 2021
Merged

clairernovotny merged 1 commit into
NuGetPackageExplorer:mainfrom
ltrzesniewski:word-wrap

Conversation

@ltrzesniewski

Copy link
Copy Markdown
Contributor

This adds a word wrap button to the content viewer pane:

image

This can be useful when reading a markdown or plain text file with long lines.

For consistency, I also added it to the editor toolbar, and added the icon to the menu:

image

Note that I did not link the enabled/disabled status of word wrap in the content viewer pane with the status in the editor (which is saved in the user settings), as they are separate components. This means the word wrap status of the content viewer pane will always be off by default. Let me know if you'd like me to change that.

Also, sorry for the larger diff than necessary, but I noticed the content viewer pane XAML had mixed tabs and spaces, so I fixed that.

@clairernovotny
clairernovotny merged commit 2b91f5f into NuGetPackageExplorer:main Jun 23, 2021
@ltrzesniewski
ltrzesniewski deleted the word-wrap branch June 23, 2021 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants