Add bounded soft wrap (#16586)
Closes #14700 #8164 Release Notes: - Added `soft_wrap` value `bounded`,EditorWidth and PreferredLineLength min value --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
4e2b08b909
commit
abb5800d20
4 changed files with 14 additions and 3 deletions
|
@ -379,10 +379,12 @@ pub enum SoftWrap {
|
|||
None,
|
||||
/// Prefer a single line generally, unless an overly long line is encountered.
|
||||
PreferLine,
|
||||
/// Soft wrap lines that overflow the editor
|
||||
/// Soft wrap lines that exceed the editor width
|
||||
EditorWidth,
|
||||
/// Soft wrap lines at the preferred line length
|
||||
PreferredLineLength,
|
||||
/// Soft wrap line at the preferred line length or the editor width (whichever is smaller)
|
||||
Bounded,
|
||||
}
|
||||
|
||||
/// Controls the behavior of formatting files when they are saved.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue