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. Qt Creator: How can I complete the line with ; at the end and move to next line like in Intellij Idea?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator: How can I complete the line with ; at the end and move to next line like in Intellij Idea?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 401 Views 2 Watching
  • 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.
  • N Offline
    N Offline
    Nuclear
    wrote on last edited by
    #1

    Hello,

    In idea/Intellij when I am in the middle of a line but I want to close brackets, place a ; at the end of the line I can do so with a hotkey ctrl-enter.

    IS there something similar in Qt Creator, best i can find is to hotkey to the end of the line and type the characters and then press Enter but this takes way more time.

    Thanks!

    aha_1980A 1 Reply Last reply
    0
    • N Nuclear

      Hello,

      In idea/Intellij when I am in the middle of a line but I want to close brackets, place a ; at the end of the line I can do so with a hotkey ctrl-enter.

      IS there something similar in Qt Creator, best i can find is to hotkey to the end of the line and type the characters and then press Enter but this takes way more time.

      Thanks!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Nuclear
      hi, I'm not awate of such a function yet, but it sounds useful.

      You might want to file a suggestion on bugreports.qt.io/QTCREATORBUG (and add a link to the report here).

      Thanks & Regards

      Qt has to stay free or it will die.

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

        Hi
        Not sure it can do that directly but you could try to record macro

        alt text

        than save it to file and go to
        alt text

        Tools > Options > Environment > Keyboard.

        and assign a key for it
        alt text

        1 Reply Last reply
        2
        • aha_1980A aha_1980

          @Nuclear
          hi, I'm not awate of such a function yet, but it sounds useful.

          You might want to file a suggestion on bugreports.qt.io/QTCREATORBUG (and add a link to the report here).

          Thanks & Regards

          N Offline
          N Offline
          Nuclear
          wrote on last edited by
          #4

          @aha_1980 Thanks, so how are you doing it? You are entering a parameter when you call a function then what? You press arrows to go to the end of the line and then you press ; and then you press enter?

          This seems like a huge waste of time every time, no?

          This is how it is in Intellij:

          If you let the first short movie run you can see what I mean, this is such a time saver

          https://www.jetbrains.com/help/idea/auto-completing-code.html#statements_completion

          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