Code snippet not working in *.txt/*.sql files
-
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 thancpp
and.h
files? Are code snippets only available incpp
and.h
files?Ciao
Maral
-
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