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

Improve indentation behavior within raw string literals

    XMLWordPrintable

Details

    • ddf7f5f232d70c8598654fdad08af3064f95903f (qt-creator/qt-creator/master)

    Description

      When editing a C++ raw string literal, e.g. (with `|` denoting the cursor position)

      const char* fmt = R"EOF(
      This is a raw string literal.|
      

      Pressing enter here gives extra indentation such that the cursor now lies here:

      const char* fmt = R"EOF(
      This is a raw string literal.
            |
      

      It would be helpful if Qt Creator preserved the indent of the last line seen in the raw string literal, rather than attempting to perform 'smart' indentation (as though this were a continued expression or similar).

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            kevinushey Kevin Ushey
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: