"Settings ..."和"Settings ..."之间有什么区别?和“默认设置..."在Android Studio中? [英] What is the difference between "Settings..." and "Default Settings..." in Android Studio?
问题描述
我发现我可以同时在File
和File
中设置文件编码和其他参数. Settings...
,还有File
| Other Settings
| Default Settings...
.但是,我不清楚这两个选项之间的区别是什么.
I find I can set File Encodings and other parameters in both File
| Settings...
, and also File
| Other Settings
| Default Settings...
. However, I'm not clear on what the difference between these two options is.
此外,我可以运行File
| Export Settings...
可以将设置保存到settings.jar文件,但是我不清楚如果运行File
|恢复到什么内容. Import Settings...
操作.
Further, I can run File
| Export Settings...
to save settings to a settings.jar file, however I am unclear what is restored if I run the File
| Import Settings...
operation.
- 两个设置选项有什么区别?
- 运行导出/导入时正在导出/导入哪些设置?
推荐答案
Android Studio中的设置与IntelliJ IDE中的设置相同,如
The settings in Android Studio work the same way as they do in the IntelliJ IDE, as Android Studio is based on IntelliJ.
File
| Settings
用于定义设置适用于当前项目的内容,以及适用于IDE的设置(即与项目无关或未保存的项目).
File
| Settings
is used to define settings that apply for the current project, and also settings for the IDE (i.e. not related to, or saved with, a project).
在 Settings 对话框中,设置分为(1)当前项目的"Project Settings"(加载新项目时可能会更改)和(2)IDE Settings.不特定于当前项目:
In the Settings dialog, settings are grouped into (1) "Project Settings" for the current project (which may change when a new project is loaded), and (2) IDE Settings which are not specific to the current project:
File
| Other Settings
| Default Settings...
仅适用于新项目(模板项目的设置).
File
| Other Settings
| Default Settings...
apply only for new projects (the template project's settings).
因此,如果刚刚创建了一个新项目,则默认设置"和设置"将是相同的.
Thus if a new project has just been created, then Default Settings and Settings would be the same.
在对话框中请注意,这些设置被标记为模板项目设置",并且包含与上述设置" 中我的应用程序"相同的子标题:
Note in the dialog that the settings are labelled "Template Project Settings", and include the same sub-headings as those for "My Application" from Settings, above:
设置可能 已导出到一个JAR文件,这样它们就可以
Settings may be exported to a JAR file, such that they may be imported later.
在导入和导出时,可以选择一个或多个组件进行导入或导出. 默认项目设置(可从File
| Other Settings
| Default Settings...
访问)是可用于导出/导入的选项之一.在下面的对话框中,仅选择了默认项目设置进行导出:
When importing and exporting, one or more components may be selected to import or export. Default Project Settings (those accessible from File
| Other Settings
| Default Settings...
) is one of the options available for export/import. In the dialog below, only Default Project Settings are selected for export:
选择要导入的已导出JAR设置文件时,在选择要导入的组件"对话框中,仅原始导出的选项可用于重新导入.在这种情况下,仅导出了默认项目设置,因此这是重新导入文件时要选择的唯一选项:
When an exported JAR settings file is selected for import, in the "Select Components to Import" dialog, only options that were originally exported are available for re-import. In this case, only Default project settings were exported, and thus this is the only option to select when re-importing the file:
这篇关于"Settings ..."和"Settings ..."之间有什么区别?和“默认设置..."在Android Studio中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!