Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20974

Support indentation of broken lines in editor (vim's breakindent)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.5.2
    • Editors
    • None
    • All

    Description

      As far as I browsed documentaiton and tried various options, there is the option either to break long lines (and start the broken line at the left margin) or not break lines automatically at all.

      Vim has the feature of "breakindent" which indents the dynamically-broken line based on indentation of its context (i.e. the start of the line whitespace). Breakindent was merged into vim in 7.4.338. This feature makes the code much easier to read even when it has to be broken.

       

      Maybe I am missing something in the documentation, since Kate has this feature (dynamic word wrap / align dynamically wrapped lines to indentation depth).

      Attachments

        1. breakindent1.png
          breakindent1.png
          66 kB
        2. breakindent2.png
          breakindent2.png
          200 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              davschul David Schulz
              eudoxos eudoxos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes