Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Hotkey to auto format code?

    General and Desktop
    keys hot key hotkey auto format indent autoformat autoindent ctrl settings
    2
    4
    18261
    Loading More Posts
    • 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
      Rample last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 4
        • R
          Rample @SGaist last edited by

          @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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post