简体   繁体   中英

How to automatically save IDE layout in Delphi XE2?

We are having an issue in Delphi XE2 with the automated saving of the desktop layout. Under environment options I do have the Autosave options - Project Desktop checked. However, changes to the layout of the desktop are not being saved and restored each time the IDE is launched.

The workaround we have in place is to use a custom destkop layout under View | Desktops. This requires us to manually save this layout each time we make a change.

Is there another setting that needs to be enabled in order for the desktop layout (window size, position, toolbar settings, etc) to persist from session to session without requiring the developer to manually save this layout?

The way to do this is to configure a custom desktop, and then save it. You can have multiple desktops (eg., normal and debug, among others) and easily switch between them using the "Desktop SpeedSetting" combobox (and associated toolbuttons) in the main menu/toolbar of the IDE. Saving is as easy as clicking the Save button and either accepting the current name or providing a new name, and switching is choosing a named desktop from the combobox.

"Autosave project desktop" saves the open files in the code editor, and whether you're on the design or code page for each form. It also saves the build configuration (debug or release). It will save which of the selected stored desktop layout you've chosen, but not any changes to that desktop layout.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM