简体   繁体   English

如何从Delphi的IDE中保存MRU列表?

[英]How do you save the MRU List from Delphi's IDE?

I just upgraded from Delphi 10.3.1 to Delphi 10.3.2. 我刚刚从Delphi 10.3.1升级到Delphi 10.3.2。 I exported the migration settings so I could import them immediately after the upgrade was completed. 我导出了迁移设置,因此升级完成后可以立即将其导入。

Unfortunately the "migration settings" does not include the MRU (Most Recently Used) list of Delphi projects and files I had been working with within the 10.3.1 IDE. 不幸的是,“迁移设置”不包括我在10.3.1 IDE中使用过的Delphi项目和文件的MRU(最近使用最多)列表。

It's probably too late now because I did a complete uninstall of Delphi 10.3.1 before doing the install of Delphi 10.3.2 as per Embarcadero's instructions. 现在可能为时已晚,因为在按照Embarcadero的说明安装Delphi 10.3.2之前,我已经完全卸载了Delphi 10.3.1。 So I'm asking this for upgrades I will be doing going forward. 因此,我要求对此进行升级。

Is there a way to export the MRU list from the Delphi IDE so it can be imported after an upgrade? 有没有一种方法可以从Delphi IDE中导出MRU列表,以便可以在升级后将其导入?

The list of Closed Files and Closed Projects is included in the Migrations Settings export file. “关闭的文件”和“关闭的项目”列表包含在“迁移设置”导出文件中。

Simply open this file with an XML friendly text editor and look for these two sections: 只需使用XML友好的文本编辑器打开此文件,然后查找以下两个部分:

<SettingGroup Name="Closed Files" Selected="true">
<SettingGroup Name="Closed Projects" Selected="true">  

The reason I suggest an "XML" friendly text editor such as Notepad++ is this; 我之所以建议使用“ XML”友好的文本编辑器(如Notepad ++),是因为; I tried opening the migration settings file within the Delphi IDE and got and error message. 我尝试在Delphi IDE中打开迁移设置文件,并得到了错误消息。

Error - "One or more lines were too long and have been truncated" 错误-“一或多行太长,已被截断”

在此处输入图片说明

Unfortunately you have to open the "Closed Projects" one at a time from within the IDE to rebuild this list. 不幸的是,您必须在IDE中一次打开一个“ Closed Projects”,以重建此列表。 In reality it only takes a few minutes to do and it get's the IDE's MRU list updated. 实际上,只需几分钟即可完成操作,并且可以更新IDE的MRU列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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