Whitespace

  • Trim End of Line Whitespace (DVT.textEditor.eLanguage.formatting.whitespace.trimEndOfLineWhitespace) - Controls whether to trim end of line whitespaces.

Before

After

../../_images/before-trim-end-of-line-whites-e.png
../../_images/after-trim-end-of-line-whites-e.png
  • Trim Whitespace Lines (DVT.textEditor.eLanguage.formatting.whitespace.trimWhitespaceLines) - Controls whether to trim lines containing only whitespaces.

Before

After

../../_images/before-trim-whitespace-lines-e.png
../../_images/after-trim-whitespace-lines-e.png
  • Compact Whitespace Groups (DVT.TextEditor.eLanguage.formatting.whitespace.compactWhitespaceGroups) - Controls whether to compact consecutive whitespace characters. It does not affect indentation, that is the whitespace at the beginning of a line is not affected by this option.

Before

After

../../_images/before-compact-whitespace-group-e.png
../../_images/after-compact-whitespace-group-e.png
  • Compact Consecutive Empty Lines (DVT.textEditor.eLanguage.formatting.whitespace.compactConsecutiveEmptyLines) - When enabled, consecutive empty lines are compacted into groups of lines whose number is less than or equal to a specified value. It does not affect the empty lines inside multi-line comments.

    • Maximum Number Of Consecutive Empty Lines (DVT.textEditor.eLanguage.formatting.whitespace.maximumNumberOfConsecutiveEmptyLines) - Consecutive empty lines are compacted when their number exceeds this value.

Before

After (Preference is set to “1”)

../../_images/before-compact-consecutive-empty-lines-e.png
../../_images/after-compact-consecutive-empty-lines-e.png