Important: Please read the Qt Code of Conduct -

Pin "buffers"/"Files" to specific panes or how do you code with multiple files and multiple panes?

  • I like to split the screen into two to four panes and then work on different files there.

    I would like files to appear in specific panes so that when I move between them, I know where to look.

    I did a quick search and didn't find such a setting.

    As an example, let's say I have files foo.h, foo.c, bar.h, bar.c, code.c, code.h, etc. and I split the screen into four panes: upper left, upper right, lower left and lower right.

    I would like to have all .h files appear in the upper left pane and foo.c on the lower left, bar.c on the upper right and code.c on the lower right.

    Currently, when I'm coding, if I want to look up a symbol and I press F2, I have it setup to open the file in another pane and Qt Creator picks a pane (I haven't worked out algorithm) and opens it there. As a result, if I'm working on different sections of a file, I end up ping-ponging between panes. I find this constant changing of panes disruptive.

Log in to reply