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. Keyboard shortcut - highlight current word

Keyboard shortcut - highlight current word

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 1.5k 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.
  • U Offline
    U Offline
    Uberlinc
    wrote on last edited by
    #1

    Currently using Qt Creator 7 (Qt 6.2.3)

    I notice many others have a lightning-quick ability to highlight a word, copy and paste it.

    Without using moving your hands from keyboard to mouse, is there a quick way?

    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • U Offline
      U Offline
      Uberlinc
      wrote on last edited by
      #8

      I just tested it!
      Amazing!
      Thank you!

      1 Reply Last reply
      0
      • U Uberlinc

        Currently using Qt Creator 7 (Qt 6.2.3)

        I notice many others have a lightning-quick ability to highlight a word, copy and paste it.

        Without using moving your hands from keyboard to mouse, is there a quick way?

        Thanks.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @Uberlinc Not sure what you mean.
        You can highlight a word using Ctrl-Shift-CursorLeft/Right and copy using Ctrl-C.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • U Offline
          U Offline
          Uberlinc
          wrote on last edited by
          #3

          So, I tried that, and yes, it's sort of what I mean, but not quite.
          So, try this:

          Single-click on a word.
          Now Double-click

          You'll see that it highlights the whole, complete command/word/etc.

          Is there a keyboard shortcut to do the same thing?

          Thanks.

          jsulmJ 1 Reply Last reply
          0
          • U Uberlinc

            So, I tried that, and yes, it's sort of what I mean, but not quite.
            So, try this:

            Single-click on a word.
            Now Double-click

            You'll see that it highlights the whole, complete command/word/etc.

            Is there a keyboard shortcut to do the same thing?

            Thanks.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @Uberlinc said in Keyboard shortcut - highlight current word:

            Is there a keyboard shortcut to do the same thing?

            That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            U 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Uberlinc said in Keyboard shortcut - highlight current word:

              Is there a keyboard shortcut to do the same thing?

              That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?

              U Offline
              U Offline
              Uberlinc
              wrote on last edited by
              #5

              @jsulm said in Keyboard shortcut - highlight current word:

              That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?

              If you happen to click into the middle of a word, Ctrl-Shift-CursorLeft/Right only highlights from where the cursor is sitting until the end/beginning of the word.
              It doesn't highlight the entire word (e.g. like a double-click would.)

              Thank YouT 1 Reply Last reply
              0
              • U Uberlinc

                @jsulm said in Keyboard shortcut - highlight current word:

                That is what Ctrl-Shift-CursorLeft/Right does? Or do you want to select more than one word at once?

                If you happen to click into the middle of a word, Ctrl-Shift-CursorLeft/Right only highlights from where the cursor is sitting until the end/beginning of the word.
                It doesn't highlight the entire word (e.g. like a double-click would.)

                Thank YouT Offline
                Thank YouT Offline
                Thank You
                wrote on last edited by Thank You
                #6

                @Uberlinc
                if you are in middle of word then you can go at it's beginning with CTRL+ LEFT/RIGHT arrow and select it using the above method

                There is option for shortcut for the question that you asked too
                Go to Tools>Options
                Inside Environment >Keyboard
                Search for selectword
                Record the key sequence that you want and just save it
                e53ba384-360d-4e19-9b4a-9f897560778e-image.png

                Unlike first method (ctrl + shift + arrow) it will select whole word irrespective of styles like camelcase

                Let's make QT free or It will go forever

                TRUE AND FALSE <3

                U 1 Reply Last reply
                2
                • Thank YouT Thank You

                  @Uberlinc
                  if you are in middle of word then you can go at it's beginning with CTRL+ LEFT/RIGHT arrow and select it using the above method

                  There is option for shortcut for the question that you asked too
                  Go to Tools>Options
                  Inside Environment >Keyboard
                  Search for selectword
                  Record the key sequence that you want and just save it
                  e53ba384-360d-4e19-9b4a-9f897560778e-image.png

                  Unlike first method (ctrl + shift + arrow) it will select whole word irrespective of styles like camelcase

                  U Offline
                  U Offline
                  Uberlinc
                  wrote on last edited by
                  #7

                  @Thank-You said in Keyboard shortcut - highlight current word:

                  @Uberlinc
                  if you are in middle of word then you can go at it's beginning with CTRL+ LEFT/RIGHT arrow and select it using the above method

                  There is option for shortcut for the question that you asked too
                  Go to Tools>Options
                  Inside Environment >Keyboard
                  Search for selectword
                  Record the key sequence that you want and just save it

                  Unlike first method (ctrl + shift + arrow) it will select whole word irrespective of styles like camelcase

                  That is brilliant!
                  Thank you!

                  1 Reply Last reply
                  0
                  • U Offline
                    U Offline
                    Uberlinc
                    wrote on last edited by
                    #8

                    I just tested it!
                    Amazing!
                    Thank you!

                    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