What is the difference between “Settings…” and “Default Settings…” in Android Studio?

那年仲夏 提交于 2019-12-04 06:10:21

The settings in Android Studio work the same way as they do in the IntelliJ IDE, as Android Studio is based on IntelliJ.

Settings

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).

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:

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:

Exporting and Importing Settings

Settings may be exported to a JAR file, such that they may be imported later.

Exporting

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:

Importing

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:

Export settings : You can export your favorite IDE settings as jar file.

In the Export Settings dialog box that opens specify the settings to export by selecting the check boxes next to them. By default, all settings are selected.

Import Settings : Similarly you can import settings to your IDE

Default Settings : These settings are used as defaults every time you create a new project.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!