Tapatalk

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

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

7
NewbieNewbie
7

    17:39 - 9 days ago#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,688587
    Grand MasterGrand Master
    6,688587

      18:17 - 9 days ago#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).
      Best regards from an UC/UE/UES for Windows user from Austria

      7
      NewbieNewbie
      7

        19:46 - 9 days ago#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.