Line Wrapping

When enabled, this option splits the lines of code that exceed the specified number of characters.

  • Line Width (ro.amiq.vlogdt/format.line_wrap.threshold) - A line is wrapped when it exceeds this value.

Before

After

../../_images/before-line-wrap-line-width.png
../../_images/after-line-wrap-line-width.png
  • Wrap single line comments and move above when needed (ro.amiq.vlogdt/format.line_wrap.sl_comments) - When enabled, if a single line comment exceeds the line width, it will be moved above and further wrapped, if needed. It is moved above in order not to break the association between an entity and its description. DVT automatically considers any comment above or in-line with an entity as its description that appears in tooltips, auto-complete or generated documentation.

Before

After

../../_images/before-wrap-single-line-comments.png
../../_images/after-wrap-single-line-comments.png
  • Wrap multi line comments (ro.amiq.vlogdt/format.line_wrap.ml_comments) - When enabled, multi line comments are wrapped to fit the line width.

Before

After

../../_images/before-wrap-multi-line-comments.png
../../_images/after-wrap-multi-line-comments.png