Intellij IDEA: Reopen files (Tabs) on start

When I close IDEA and start it again, all open Files (Tabs) are closed and the project tree is collapsed. How can I restart IDEA such that it reopens the files and the project tree?

Thank you.

EDIT: .idea/workspace.xml was broken - about 75 kb of nullbytes. Strange behaviour not to ask the user how to handle a broken config file. I closed IntelliJ IDEA and deleted the file. Now files are reopened when a project is opened.

Answers


You can go to File | Settings, select Appearance & Behavior in the left panel, select System Settings in the left panel, and then select the "Reopen last project on startup" check box. If this option is selected, your last project should be opened after a restart, including the files that were open and the project tree.

Screenshot:


Sometimes the file .idea/workspace.xml may become corrupted. As a consequence, the project stops remembering the open files. Please check this file. If it contains anything else than proper XML, deleting the file and reopening the project helps.


Need Your Help

AjaxControlToolkit & RequiredFieldValidator compatibility issue

asp.net ajaxcontroltoolkit

I had a ASP.NET webpage with several text boxes (WebControls) with mandatory data entry. Hence, the text boxes have an associated RequiredFieldValidator & this form was working fine.

Confused as to which Prototype helper to use (updated)

ruby-on-rails ruby ajax prototypejs rjs

This is a continuation of Confused as to which Prototype helper to use. My code has been updated to reflect other user's suggestions: