Tapatalk

Some templates auto-expand, some do not — why?

Some templates auto-expand, some do not — why?

12
Basic UserBasic User
12

PostDec 20, 2024#1

Using python 3.12 I have several templates.
This one (named "if"):

Code: Select all

if ([+expression+]):

^
expands if I wait a second or two after I type "if"

However, this one does not:

Code: Select all

print('[+expression+]')

^
Why?
Is it possible that this is because my python word list needs updating?

6,824625
Grand MasterGrand Master
6,824625

PostDec 20, 2024#2

You forgot to write about the names of the two smart Python language templates. A smart template is suggested according to typed string depending on the name. The first template has most likely a name beginning with if. What is the name of the second template? Does it begin with print?

Please open Advanced - Settings or Configuration - Templates and configure the smart templates options to your needs. Open the Modify Templates dialog window, select the language Python and configure the language templates to your needs (name, content, description).

12
Basic UserBasic User
12

PostDec 20, 2024#3

Yes the name was 'print'.
The problem was that I had "Include templates in auto-complete dialog" checked.
Now all of them auto-expand properly.
Thanks for your help.