madskristensen / MarkdownEditor

A Visual Studio extension
Other
409 stars 93 forks source link

Please add Soft Line Wrap option to text editor #210

Open SetTrend opened 3 years ago

SetTrend commented 3 years ago

Installed product versions

Description

Currently, when typing long lines of text, the text editor scrolls along with the cursor. And so, context is getting lost.

I wouldn't want to bother with hitting RETURN whenever I feel the end of a visual line is coming near (like in the old typewriter days, when the bell rang). Particularly, as this "visual line end" may vary depending on, e.g., application document window width.

So I suggest to add an option to the Markdown Editor that enables the text editor to automatically wrap the entered text - only for presentation in the text editor panel, not by adding line-breaks to the Markdown text source itself. (The suggested behaviour is similar to MS Notepad editor's "Format > Wrap text" menu option.)

Current behavior

Currently, when typing long lines of text, the text editor scrolls along with the cursor. And so, context is getting lost.

Expected behavior

While typing, the Markdown text editor should automatically wrap text at the text editor panel's margin. Wrapping should be performed at word boundaries.

With the new option, all the entered text will be always visible and in reach.

madskristensen commented 2 years ago

This is added in the new v2 extension https://marketplace.visualstudio.com/items?itemName=MadsKristensen.MarkdownEditor2