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

New "snippets" feature should be able to use "TAB" key as snippet trigger

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 2.2.0-beta
    • Editors
    • None

    Description

      Thanks for new snippets feature - it works great.

      But this feature is not unique to Qt Creator - it was implemented many years ago in TextMate text editor for MacOS. And as it became popular, it was also ported to VIM, Emacs, Eclipse, Visual Studio and all major IDE's and text editors. All implementation have one common behavior: they use TAB key to expand snippet. So the editing cycle is to enter snippet name, hit TAB to expand it, replace placeholder, hit TAB to goto next placeholder, expand it etc.

      Qt Creator implementation works great, but it have ctrl+space snippet trigger and requires the snippet to be manually selected among autocompletion choices. This kills the snippets speed and looks very alien and counter-intuitive for any person who used snippets before on any editor or IDE.

      I suggest to make a checkbox in Qt Creator options "Use TAB for snippets trigger". So if this checkbox is set, Qt Creator will expand snippet on single TAB hit, without a need to select a snippet among non-relevant autocompletion choices. This will make snippets really useful and fast way to write code.

      Attachments

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

        Activity

          People

            davschul David Schulz
            eyeofhell Grigory Petrov
            Votes:
            10 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes