S
S
Serge Tkach2018-08-28 17:08:24
NetBeans
Serge Tkach, 2018-08-28 17:08:24

How to keep tab sort order when closing a project in NetBeans 8.2?

When you close the program and reopen it, everything is OK: the tabs retain the order in which they are listed here. Moreover, if 2 or more projects are open at once, the order is still preserved.
Naturally, when there are many, many open tabs, it becomes inconvenient to work. It is necessary to open and close different projects. And when you close the project and then open it, the order of the tabs is broken.
---
It would seem that the order of tabs with open project files is stored in the file /project_path/nbproject/private/private.xml like this:

<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
        <group>
            <file>file:/var/www/sites/js.loc/level2/module-2/table.html</file>
            <file>file:/var/www/sites/js.loc/level2/module-2/lab-2-1.html</file>
            <file>file:/var/www/sites/js.loc/level2/module-2/form.html</file>
            <file>file:/var/www/sites/js.loc/level2/module-2/select-options.html</file>
        </group>
    </open-files>

But neither moving tabs, nor closing the project, nor even the termination of the program does not entail changes to this file. He seems to live a separate life and changes incomprehensibly when.
In addition, if the program was completed (and the project remained open at the same time), then when the program is started, the order is not the same as in this file, but the same as it was at the time the program was closed. That is, everything is ok.
But if you open a previously closed project in the state of a running program, then the tabs are sorted exactly according to the sequence in this file. That is, some kind of nonsense turns out, since he really lives a separate life.
Dear NetBeans experts, please help me to set up or understand the moment of resaving this file so that sorting tabs does not piss me off every morning :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question