Reputation: 1025
I'm new to Delphi, coming from Visual Studio it's a simple question (I guess): how do I prevent Delphi 10 Seattle to open last use project(group) when I start the IDE?
I've found some information about the .dsk file and what it does:
The .dsk file records your current settings for:
- Desktop layout
- Breakpoints
- Watch items
- Files currently open in the IDE
When you reopen the project later, the .dsk file is read, and your desktop layout, your breakpoints, and your watches are all restored. Also, all files that were opened when the project was closed are opened again, regardless of whether they are used by the project.
I'm fine with that when I open a project. But please do not open it when I start the IDE. Mostly I want to start or open another project than the last one I was working on. I've searched the options and the internet, but couldn't find a solution. Anyone?
Upvotes: 7
Views: 2005
Reputation: 16045
Few days ago they released CnWizards v.1.3.1.
That version introduced a checkbox to preclude project loading even when the nuclear option of "Disable "Project desktop" saving" was not taken.
Personally i do want the projects to do save their desktops. In-private. I just do not want their private settings to pollute the global state of the IDE.
That option also does not kill the Welcome Page, which i did not want to kill in my current job, so my prior -np
answer could no more suit my changed needs.
https://github.com/cnpack/cnwizards/issues/193
Tested in Delphi 2007 and XE 10.2.0.
Upvotes: 0
Reputation: 16045
But please do not open it when I start the IDE. Mostly I want to start or open another project than the last one
Granted, I do no have Seattle at hands, I settled in XE2. But try changing the shortcut.
-np: No welcome page. Does not display the welcome page after starting the IDE. np also stands for No Project. Independently of Environment Options Project desktop the last opened project will not be opened
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/IDE_Command_Line_Switches_and_Options
saving the layout and position of the tool windows like Refactorings,
That is what the "Layout" combo-box on the "Desktop" toolbar does. Unless you want different layouts in different projects. R-click over your IDE's tool buttons or go View|Toolbars menu to turn "Desktop" bar on. Alternatively use View|Desktops menu.
Upvotes: 4
Reputation: 5920
Disable "Project desktop" in the IDE Autosave options (Tools\Options\Envinroment options).
Upvotes: 8