Repository: vscode
Issue: Conditional Text Wrapping
Labels: feature-request,markdown,editor-wrapping

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
When working in documents like Markdown, LaTex, etc. that are primarily comprised of human-readable text, but that do have some syntax for other structures mixed in (e.g., tables, LaTex macros and environments, etc.) I keep running into a pain point with text wrapping. Essentially, when working in these kinds of files, it is very useful to have text wrapping turned on and set to a reasonable limit (e.g., 80-120 characters) so that sentences, paragraphs, etc. are still visible when they are long.
However, the inclusion of the syntax for other structures means that sometimes there are lines that get wrapped that would be infinitely more legible without the wrapping. Take a Markdown table like below
```markdown
| Thing 1 | Thing 2 |
|   ---   |   ---   |
|Some really, really, really, really long sentence that just keeps going for so, so, so long that it just runs past any reasonable line limit that one could think to impose and so wraps to another line making it really hard to tell which cells of the table are which. | A short bit of content |
| Another short bit of content | Another loooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnnnnggggggggggggg line that makes it really hard to tell which cells of the table are which and what columns to which they belong|
```
that, when wrapped, gets rendered something like
```markdown
| Thing 1 | Thing 2 |
|   ---   |   ---   |
|Some really, really, really, really long sentence that just keeps going for so, so, so long
that it just runs past any reasonable line limit that one could think to impose and so 
wraps to another line making it really hard to tell which cells of the table are which. | A
short bit of content |
| Another short bit of content | Another 
loooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnnnnngggggggg
ggggg line that makes it really hard to tell which cells of the table are which and what 
columns to which they belong|
```
(syntax highlighting broken due to manually added line breaks).

The second is much harder to tell what is going on!
But I don't want to disable text wrapping for the whole file type, or even the whole file because then the rest of the file is much more difficult to read and work in.
I could manually toggle text wrapping depending on what I'm currently working on/looking at, but that might be a lot of back-and-forth toggling.

If possible I think it could be a great feature that I haven't seen elsewhere to have "conditional" text wrapping. In other words, to have an API that extensions could work with that allows text wrapping to be turned on and off per line or similar. This would allow the Markdown extension, for example, to turn off the text wrapping when writing a table as in above. Or similarly for LaTex, text wrapping could be turned off in a number of environments or macros like the `tabular` or `align` environments.