Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator snippets not working fine

Qt Creator snippets not working fine

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 226 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.
  • L Offline
    L Offline
    Leonardo Giordano
    wrote on last edited by
    #1

    Hi everybody,
    I have been using Qt Creator for several years.
    Some months ago, code snippets stopped working fine.
    For instance, when I type "for" and press ctrl+space, the default snippet is:

    for (int $var$ = 0; $var$ < $total$; ++$var$) {
            $$
    }
    

    The snippet code completion works fine and the first $var$ is selected. But when I type the var name (let's say 'i'), all instances of $var$ should be replaced. And when I press TAB it should select $total$ so I can type there. And next TAB should go to $$

    In my case, only the first $var$ is replaced with the text I type, and the TAB key just inserts a TAB there:

    for (int i   = 0; var < total; ++var) {
            
    }
    

    The thing is I haven´t changed any code snippet (I'm using default snippets). I updated to Qt Creator 11 today but it does the same. I can't figure out what the issue could be. All other snippets work badly as the 'for' snippet.
    Any tips?
    Kind regards!
    Leonardo

    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