Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Code snippet not working in *.txt/*.sql files
QtWS25 Last Chance

Code snippet not working in *.txt/*.sql files

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 488 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maral
    wrote on last edited by
    #1

    Hi,

    i have a created a code snippet in Qt Creator 3.2.1 in group "Text". But when I enter its trigger and press Control+Space the snippet is only expanded in files whose extension is either .cpp or .h. It is not expanded in .txt or .sql files. Is it possible to activate snippets in files other than cpp and .hfiles? Are code snippets only available in cpp and .hfiles?

    Ciao

    Maral

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      As far as I could find, snippets / auto completion is only available in cpp related files. Sadly.
      maybe you could use a macro ?
      http://doc.qt.io/qtcreator/creator-macros.html

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved