I would like to save actually open files (tabs) and revert session (group of files) next time. Is there any options in NetBeans IDE 7.1.2? I know that NetBeans save automatically list of files that were opened when I quit the IDE. How to save opened files and switch between sessions?
Select File > Save from the main menu. This will automatically save the source code in that is open in the active tab of your Netbeans workspace.
You can find your project directory by going to the "Netbeans "Projects" tab, right-clicking in your project folder and selecting "Properties". The "Project folder" will be shown on at the top of the new window displayed (i.e. "C:\Users\admin\Documents\NetBeansProjects\YourProjectName").
Click on Tools, then Options, then on the Keymap icon in the tool bar of the dialog. In Search: type "Open Fi" and you should see "Open File..." in the Actions list.
To open a local file/folder (as a file-explorer) in Netbeans, in the top menu-bar goto: Window -> Favourites (or press Ctrl+3), this will open 'Favourites' pane, here you can open files or folders (in Linux, by default you will see your 'home' directory).
You are looking for Project Groups. Take a look at the File > Project Group
menu.
There you can create Project Groups that defines a list of opened projects. You can then switch from groups and the chosen projects will be opened/closed.
Netbeans saves the list of opened files per project so:
<3 Netbeans
Try Tab Groups.
In Netbeans (at least in version 7.3.1), click: Window > Configure Window > New Document Tab Group
Now, open a new file and it should open in a separate window.
Then, you can toggle the Maximize Window / Restore Window buttons to switch between your windows / tab groups.
Restore Window Button
Maximize Window Button
This is a convenient way to switch between sets of files, although you technically aren't saving these sets as you asked in your question. It does remember these tab groups when you close and reopen Netbeans, though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With