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. Hotkey for QT Editor to put /* */ pair
Forum Updated to NodeBB v4.3 + New Features

Hotkey for QT Editor to put /* */ pair

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 461 Views 1 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.
  • K Offline
    K Offline
    kapabahwuk
    wrote on last edited by
    #1

    Is there such feature?

    JonBJ 1 Reply Last reply
    0
    • K kapabahwuk

      Is there such feature?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @kapabahwuk
      If you highlight an in-line (C++) text then Ctrl+/ will surround it with inline comment markers.
      If it's a whole line/block that is marked you will get end-of-line comment markers instead.

      1 Reply Last reply
      1
      • K Offline
        K Offline
        kapabahwuk
        wrote on last edited by
        #3

        it worked, but I toggled something and it has other effects
        it puts // before selected text
        how can I switch to /* */

        JonBJ 1 Reply Last reply
        0
        • K kapabahwuk

          it worked, but I toggled something and it has other effects
          it puts // before selected text
          how can I switch to /* */

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @kapabahwuk
          I answered that. It should be working as I stated.

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kapabahwuk
            wrote on last edited by
            #5

            Thank you for anwser, but when I use the keyboard I get // for each selected line :)
            Must be a way to roll back

            Pl45m4P 1 Reply Last reply
            0
            • K kapabahwuk

              Thank you for anwser, but when I use the keyboard I get // for each selected line :)
              Must be a way to roll back

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @kapabahwuk

              What roll back? If you press again, it uncomments again. Either // or /*...*/

              when I use the keyboard I get // for each selected line

              If you select the whole line, it's the same. If you select parts of one line/expression, you'll get /*...*/ in between.


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              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