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. [SOLVED] How to close all files with a single command in Qt Creator editor?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to close all files with a single command in Qt Creator editor?

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 3 Posters 6.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.
  • V Offline
    V Offline
    vincegata
    wrote on 23 Jun 2011, 22:13 last edited by
    #1

    Hello,

    While I am working (C++) I tend to open multiple files in the editor. e.g. I might open several header files when I follow the F2 command, and so on I can have 20 open source and makefiles open at the same time.

    So, is there a command to close all the open files? Right now I have to switch through every file and close them one by one.

    THX!!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on 23 Jun 2011, 22:15 last edited by
      #2

      Try Ctrl-Shift-W.

      Edit: In the Options, under Environment->Keyboard, you can search for (or remap) keyboard shortcuts.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on 23 Jun 2011, 22:15 last edited by
        #3

        That should work with shift-ctrl-w (shift-cmd-w on a Mac).

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vincegata
          wrote on 23 Jun 2011, 22:18 last edited by
          #4

          That worked, thank you!

          How did you find it? In the Options->Keyboard?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on 23 Jun 2011, 22:20 last edited by
            #5

            In Options->Environment->Keyboard, search for "Close". One of the options returned is "CloseAll".

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vincegata
              wrote on 23 Jun 2011, 22:21 last edited by
              #6

              I see.

              Do you know if there is a help section with a table somewhere with all the default shortcuts?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mlong
                wrote on 23 Jun 2011, 22:25 last edited by
                #7

                They're all listed there in the keyboard settings tab. I'm not aware if they're in help.

                Software Engineer
                My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on 23 Jun 2011, 22:41 last edited by
                  #8

                  That's a standard shortcut: ctrl-w closes the actual window, shift-ctrl-w all windows. It works in many different applications for me.

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mlong
                    wrote on 23 Jun 2011, 22:48 last edited by
                    #9

                    FWIW, KDAB has a nice little set of cheat sheets (for both Linux/Windows and Mac) in US Letter and A4 sizes available "here":http://www.kdab.com/index.php?option=com_content&view=article&id=126.

                    I'm not 100% sure if they're up to date with the latest and greatest version of Creator, but they'd probably still be informative even if they're not.

                    Software Engineer
                    My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                    1 Reply Last reply
                    0

                    1/9

                    23 Jun 2011, 22:13

                    • Login

                    • Login or register to search.
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved