> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-profiles/changing-default-quality-profile.md).

# Changing default quality profile

Sonar way core is the default quality profile for every language. Change the default with a general profile for several languages, or per language.

The default quality profile of a language is used for every project that is not explicitly associated with another profile for that language. By default, the built-in Sonar way core profile is the default for every language.

With the Administer Quality Profiles permission, you can change the default in two ways:

* Set a general profile as the default for all languages, or for a selection of languages, in one step.
* Set a language-specific profile as the default for one language.

For a given language, the most recent change applies. For example, if you set a general profile as the default for all languages, and then set another profile as the default for Java on the **Language-specific** tab, all languages except Java use the general profile. See [Understanding quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/understanding-quality-profiles.md#profile-types) for more information.

## Setting a general profile as the default <a href="#default-for-several-languages" id="default-for-several-languages"></a>

1. Go to *Your organization* > **Policies** > **Quality profiles**. See [Retrieving your organizations](/sonarqube-cloud/getting-started/viewing-organizations.md) to access your organization.
2. On the **General** tab, select **All**.
3. In the action menu of the profile, select **Set as default**.

<figure><img src="https://2223713658-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB4UT2GNiZKjtxFtcFAL7%2Fuploads%2Fgit-blob-9e38259d408fe3f83190c6e21f660b7d97a0257a%2Fsonarqube-cloud-quality-general-set-default.png?alt=media" alt="The General tab with All selected and the action menu of the Sonar way core card open, showing Set as default and Assign projects"><figcaption></figcaption></figure>

4. When the dialog opens, choose one of these options:
   * **Set for all languages**: the profile becomes the default for every language.
   * **Customize languages**: select the checkbox of each language the profile should be the default for.
5. Select **Confirm**.

The profile replaces the current default for the selected languages. Its card shows the **Default for&#x20;*****N*****/*****M*****&#x20;languages** tag, and the profile is listed in the **In use** tab.

## Setting a language-specific profile as the default <a href="#default-for-one-language" id="default-for-one-language"></a>

1. Go to *Your organization* > **Policies** > **Quality profiles**. See [Retrieving your organizations](/sonarqube-cloud/getting-started/viewing-organizations.md) to access your organization.
2. On the **Language-specific** tab, locate the language whose default profile you want to change.
3. In the action menu of the profile, select **Set as default**.

<figure><img src="https://2223713658-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB4UT2GNiZKjtxFtcFAL7%2Fuploads%2Fgit-blob-d5ebdae5d83c48315f23f1c062865b58d5a79625%2Fsonarqube-cloud-quality-profile-set-default.png?alt=media" alt="The Language-specific tab listing ABAP profiles, with the action menu of Sonar way core open and Set as default selected"><figcaption></figcaption></figure>

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Understanding quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/understanding-quality-profiles.md)
* [Viewing quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/viewing-quality-profiles.md)
* [Creating a quality profile](/sonarqube-cloud/standards/managing-quality-profiles/creating-a-quality-profile.md)
* [Editing a quality profile](/sonarqube-cloud/standards/managing-quality-profiles/editing-a-custom-quality-profile.md)
* [Associating with projects](/sonarqube-cloud/standards/managing-quality-profiles/associating-a-quality-profile-with-projects.md)
* [Maintaining quality profiles](/sonarqube-cloud/standards/managing-quality-profiles/maintaining-your-custom-quality-profiles.md)
* [Granting permissions to users](/sonarqube-cloud/standards/managing-quality-profiles/authorizing-other-users-to-manage-quality-profile.md)
* [Quality profile](/sonarqube-cloud/managing-your-projects/project-analysis/quality-profile-association.md)
* [Quality profiles for agentic AI](/sonarqube-cloud/standards/ai-code-assurance/quality-profiles-for-agentic-ai.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sonarsource.com/sonarqube-cloud/standards/managing-quality-profiles/changing-default-quality-profile.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
