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. possible to automatically move the cursor to the next line after comment one line?

possible to automatically move the cursor to the next line after comment one line?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 2 Posters 1.9k 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.
  • Q Offline
    Q Offline
    qtpi
    wrote on last edited by
    #1

    Hi guys.
    The question is pretty simple: I used to work on other IDE on which if I click "Ctrl+/" to comment one line, the cursor will move the next line automatically.
    But in Qt Creator, the cursor stays on the current line.

    is it possible to modify this feature?

    Thnx

    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,
      you're not the first one asking this question: https://bugreports.qt.io/browse/QTCREATORBUG-17250

      is it possible to modify this feature?

      Of course (Creator is open source software), just somebody has to do it. I don't have a strong opinion on that and would most likely recommend a setting for that.

      Qt has to stay free or it will die.

      Q 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi,
        you're not the first one asking this question: https://bugreports.qt.io/browse/QTCREATORBUG-17250

        is it possible to modify this feature?

        Of course (Creator is open source software), just somebody has to do it. I don't have a strong opinion on that and would most likely recommend a setting for that.

        Q Offline
        Q Offline
        qtpi
        wrote on last edited by
        #3

        @aha_1980 Tnx for the info. Seems it's not implemented yet.
        but you mean it's open source. does it mean I can push the change if I try to add this feature?

        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @qtpi Of course can you create a patch and push to codereview.qt-project.org
          But I just found a much simpler solution:

          Use the text editing macros [1], record your sequences of keystrokes, save the macro and then assign a key combination to your macro in Tools -> Options -> Environment -> Keyboard.

          [1] http://doc.qt.io/qtcreator/creator-macros.html
          No coding needed and works like a charm.

          Qt has to stay free or it will die.

          Q 1 Reply Last reply
          3
          • aha_1980A aha_1980

            @qtpi Of course can you create a patch and push to codereview.qt-project.org
            But I just found a much simpler solution:

            Use the text editing macros [1], record your sequences of keystrokes, save the macro and then assign a key combination to your macro in Tools -> Options -> Environment -> Keyboard.

            [1] http://doc.qt.io/qtcreator/creator-macros.html
            No coding needed and works like a charm.

            Q Offline
            Q Offline
            qtpi
            wrote on last edited by
            #5

            @aha_1980 said in possible to automatically move the cursor to the next line after comment one line?:

            @qtpi Of course can you create a patch and push to codereview.qt-project.org
            But I just found a much simpler solution:

            Use the text editing macros [1], record your sequences of keystrokes, save the macro and then assign a key combination to your macro in Tools -> Options -> Environment -> Keyboard.

            [1] http://doc.qt.io/qtcreator/creator-macros.html
            No coding needed and works like a charm.

            nice solution. Thnx!

            1 Reply Last reply
            0
            • aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @qtpi So can you please close this as Solved?

              Qt has to stay free or it will die.

              Q 1 Reply Last reply
              0
              • aha_1980A aha_1980

                @qtpi So can you please close this as Solved?

                Q Offline
                Q Offline
                qtpi
                wrote on last edited by
                #7

                @aha_1980 said in possible to automatically move the cursor to the next line after comment one line?:

                @qtpi So can you please close this as Solved?

                sure!
                sorry I forgot to do it.

                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