Qt Creator 在哪里保存它的设置? [英] Where does Qt Creator save its settings?

查看:38
本文介绍了Qt Creator 在哪里保存它的设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到 Qt Creator 保存其所有设置(文本编辑器首选项、语法突出显示等)的文件夹,以便我可以备份它们.有人知道他们在哪里吗?

I would like to locate the folder where Qt Creator saves all its settings (text editor preferences, syntax highlighting, etc.) so that I can back them up. Does anybody know where they are?

推荐答案

参见 QtCreator 快速导览.

Qt Creator 创建以下文件和目录:

Qt Creator creates the following files and directories:

QtCreator.db
QtCreator.ini
qtversion.xml
toolChains.xml
qtcreator
qtc-debugging-helper
qtc-qmldump

位置取决于平台.在 Linux 和其他 Unix 上平台,文件位于 ~/.config/QtProject~/.local/share/data/QtProject/qtcreator.

The location depends on the platform. On Linux and other Unix platforms, the files are located in ~/.config/QtProject and ~/.local/share/data/QtProject/qtcreator.

在 Mac OS 上,文件位于 ~/.config/QtProject~/Library/Application Support/QtProject/Qt Creator.

On Mac OS, the files are located in ~/.config/QtProject and ~/Library/Application Support/QtProject/Qt Creator.

通常在 Windows 上,文件位于 %APPDATA%\QtProject%LOCALAPPDATA%\QtProject.是的,您可以在资源管理器和各种命令行 shell 中使用这些路径.环境变量(在 % 符号之间)会自动扩展.如果您需要具体路径,请参见下文.

On Windows in general, the files are located in %APPDATA%\QtProject and %LOCALAPPDATA%\QtProject. Yes, you can use these paths in Explorer and in various command line shells. The environment variables (between the %-signs) are expanded automatically. If you need the concrete paths, see below.

在 Windows 10、8、Vista 和 7 上,文件位于:\Users\\AppData\Roaming\QtProject:\Users\\AppData\Local\QtProject.

On Windows 10, 8, Vista and 7, the files are located in <drive>:\Users\<username>\AppData\Roaming\QtProject and <drive>:\Users\<username>\AppData\Local\QtProject.

在 Windows XP 上,文件位于 :\Documents and Settings\\Application Data\QtProject:\Documents andSettings\\Local Settings\Application Data\QtProject.

On Windows XP, the files are located in <drive>:\Documents and Settings\<username>\Application Data\QtProject and <drive>:\Documents and Settings\<username>\Local Settings\Application Data\QtProject.

这篇关于Qt Creator 在哪里保存它的设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆