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. Hotkey to auto format code?
QtWS25 Last Chance

Hotkey to auto format code?

Scheduled Pinned Locked Moved General and Desktop
keyshotkeyhotkeyautoformatindentautoformatautoindentctrlsettings
4 Posts 2 Posters 19.6k 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.
  • R Offline
    R Offline
    Rample
    wrote on last edited by
    #1

    So I'm coming from visual studio and used the "ctrl + k + d" hot key all the time to auto format my code. I have searched the settings high and low and have not found a hot key for this? Does it exist? Can I create it somehow?

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

      Hi and welcome to devnet,

      Do you mean the ctrl + i command ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      4
      • SGaistS SGaist

        Hi and welcome to devnet,

        Do you mean the ctrl + i command ?

        R Offline
        R Offline
        Rample
        wrote on last edited by
        #3

        @SGaist that seems to be the closest thing I can find to what I'm looking for. However it's not what I'm used to. the hotkey I'm used to would auto format everything regardless if its selected or not. It would get rid of all unnecessary white scape and even move lines of code around to be more readable. Thanks for you help.

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

          So you already tested the Edit->Advanced possibilities ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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