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

Editor Snippets Variables aren't working anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 10.0.1, Qt Creator 11.0.0-beta1
    • Editors
    • None

    Description

      The snippet variables feature seems to be gone in new Qt Creators.

      In snippets you can have variable enclosed in $$ and if one has multiple occurrences, all of them will be replace by the text you enter. You can also navigate to edit other variables with TAB.

      This happens with both built-in and custom snippets, and C++ or QML context ones too.

      For example when I trigger the Q_PROPERTY($type$ $name$ READ $name$ WRITE set$name:c$ NOTIFY $name$Changed FINAL) snippet, the first type get correctly selected but I can't tab to edit the name variable. Tab just inserts a tab, enter also does not "finish" the snippet edition as before but just inserts a new line.

      I am not aware of how it works under the hood but it seems that there was a "snippet editing mode" that isn't being activated anymore.

      Attachments

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

        Activity

          People

            davschul David Schulz
            grecko Pierre-Yves Siret
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes