delphi - 恢复Delphi环境路径

标签 delphi delphi-10-seattle

在 Delphi 10 Seattle 中,我单击了 Options->Library->LibraryPath 中的“删除无效路径”按钮,它弄乱了一些默认环境路径。有办法恢复默认设置吗?

例如:

$(BDSLIB)\$(平台)\
$(BDSCOMMONDIR)\Dcp\$(平台)

(这些无效)

最佳答案

有默认和内置的方式来恢复您的设置。这种方式可用多年(超过15年)

使用命令行参数-rXXX运行Delphi

bds.exe -rXXX。会发生什么:

The name you provide after -r is a registry hive. If that registry hive does not exist, the IDE create a brand new registry hive with all the defaults and uses it. Because this takes you back to all the default settings, it fixes most start up problems with the IDE. Note that because custom controls are not part of the defaults, this technique will result in your IDE not having any custom controls you have installed previously. Custom controls are the most common cause of this error, so you will probably want to add any you have one at a time and test.

Your new registry hive will be stored in the registry at HKCU\Software\Embarcadero\name\version. Your current settings for the IDE are stored at HKCU\Software\Embarcadero\BDS\version. You can compare the two registry hives using regedit to see what is different.

您可以从新环境恢复您的库/浏览路径,方法是从 XXX 环境复制它们并将其粘贴到常规环境中。

了解更多信息 http://docwiki.embarcadero.com/RADStudio/Berlin/en/IDE_Command_Line_Switches_and_Options以及 http://support.embarcadero.com/es/article/42597

关于delphi - 恢复Delphi环境路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38798372/

相关文章:

delphi - 如何禁用其他使用 CEF 渲染网页的应用程序的硬件加速?

delphi - 匿名方法生成什么样的元数据?有没有办法删除它?

delphi - 如何在delphi 10中使用带有idhttp的线程

delphi - 将结果从 ReportMemoryLeaksOnShutdown 重定向到日志文件

delphi - Delphi 中的嵌套属性

delphi - Delphi 中的高效缓存

delphi - firemonkey - 如何以小写字母启动移动键盘?

delphi - 如何在 TEdit 中显示占位符

delphi - 在控制台delphi中生成三个字符

Delphi 数组对齐设置为 4、8 或 16 字节边界?