doc/user/profile/preferences.md
{{< details >}}
{{< /details >}}
You can update your preferences to change the look and feel of GitLab.
{{< history >}}
{{< /history >}}
You can change the color mode of the interface to be light, dark, or automatically update based on device preferences.
To change the appearance:
{{< history >}}
{{< /history >}}
You can change the navigation theme of the GitLab UI. These colors are displayed in the left sidebar. Using individual navigation themes might help you differentiate between your different GitLab instances.
To change the navigation theme:
{{< history >}}
{{< /history >}}
Syntax highlighting is a feature in code editors and IDEs. The highlighter assigns a color to each type of code, such as strings and comments.
To change the syntax highlighting theme:
To view the updated syntax highlighting theme, refresh your project's page.
To customize the syntax highlighting theme, you can also use the Application settings API. Use default_syntax_highlighting_theme and default_dark_syntax_highlighting_theme to change the syntax highlighting colors on a more
granular level.
If these steps do not work, your programming language might not be supported by the syntax highlighters. For more information, view Rouge Ruby Library for guidance on code files and Snippets. View Monaco Editor and Monarch for guidance on the Web IDE.
Diffs use two different background colors to show changes between versions of code. By default, the original file is in red, and the changes are in green.
To change the diff colors:
To change back to the default colors, clear the Color for removed lines and Color for added lines text boxes and select Save changes.
Use the Behavior section to customize the behavior of the system layout and default views. You can change your layout width and choose the default content for your homepage, group and project overview pages. You have options to customize appearance and function, like whitespace rendering, file display, and text automation.
You can also use this section to set a default namespace for GitLab Duo.
You can stretch content on the GitLab UI to fill the entire page. By default, page content is fixed at 1280 pixels wide.
To change the layout width of your UI:
{{< history >}}
{{< /history >}}
By default, all new users see the Rich text editor when editing content. You can change the default editor for editing content in GitLab.
{{< history >}}
your_work_projects_vue. Disabled by default.your_work_projects_vue removed.personal_homepage. Disabled by default.{{< /history >}}
Control what page you view when you select the GitLab logo ({{< icon name="tanuki" >}}). You can set your homepage to be Personal homepage (default), Your Contributed Projects, Your Groups, Your Activity, and other content.
To choose your homepage view:
You can change the main content on your group overview page. Your group overview page is the page that shows when you select Groups in the left sidebar. You can customize the default content for your group overview page to the:
For more information, view Groups.
To change the default content on your group overview page:
Your project overview page is the page you view when you select Project overview in the left sidebar. You can set your main project overview page to the Activity page, the README file, and other content.
{{< history >}}
ai_user_default_duo_namespace. Disabled by default.ai_user_default_duo_namespace feature flag in GitLab 18.7.{{< /history >}}
Set a default GitLab Duo namespace to ensure GitLab Duo is available to use with your project. Your default GitLab Duo namespace determines your available AI models and GitLab Duo features, and your consumption of GitLab Credits.
Your default GitLab Duo namespace determines feature availability and credit consumption in the following scenarios:
When you work in a project or group where you're a direct or inherited member, the top-level group of that project or group is used instead for feature availability and credit consumption:
If you do not set a default namespace, GitLab Duo Agentic Chat and the GitLab Duo Agent Platform are disabled.
To set a default GitLab Duo namespace:
{{< history >}}
{{< /history >}}
When you use GitLab Duo in an IDE or the CLI, the first available namespace determines feature availability and credit consumption. GitLab Duo checks for a namespace in this order:
If the first namespace identified does not have access to the requested feature or available credits, the feature is not available. GitLab Duo does not fall back to the next namespace in the list.
Shortcut buttons precede the list of files on a project's overview page. These buttons provide links to parts of a project, such as the README file or license agreements.
To hide shortcut buttons on the project overview page:
Whitespace characters are any blank characters in a text, such as spaces and indentations. You might use whitespace to structure content in code. If your programming language is sensitive to whitespaces, the Web IDE can detect changes to them.
To render whitespace in the Web IDE:
You can view changes to whitespace in diffs.
To view diffs on the Web IDE, follow these steps:
View changes to whitespace in diff files. For more information on whitespaces, view the previous task.
To view changes to whitespace in diffs:
For more information on diffs, view Change the diff colors.
The Changes tab lets you view all file changes in a merge request on one page. Instead, you can choose to view one file at a time.
To show one file per page on the Changes tab:
Then, to move between files on the Changes tab, below each file, select the Previous and Next buttons.
Automatically add the corresponding closing character to text when you type the opening character. For example, you can automatically insert a closing bracket when you type an opening bracket. This setting works only in description and comment boxes and for the following characters: **", ', ```, (, [, {, <, *, _**.
To auto-enclose characters in description and comment boxes:
In a description or comment box, you can now type a word, highlight it, then type an opening character. Instead of replacing the text, the closing character is added to the end.
Create a new list item when you press <kbd>Enter</kbd> in a list in description and comment boxes.
To add a new list item when you press the <kbd>Enter</kbd> key:
Maintain the indentation when you press <kbd>Enter</kbd>. The cursor on the new line is automatically indented the same as the previous line. This setting works only in description and comment boxes.
To add a new list item when you press the <kbd>Enter</kbd> key:
Change the default size of tabs in diffs, blobs, and snippets. The Web IDE, file editor, and Markdown editor do not support this feature.
To adjust the default tab width:
Change localization settings such as your language, calendar start day, and time preferences.
GitLab supports multiple languages on the UI.
To choose a language for the GitLab UI:
You might need to refresh your page to view the updated language.
Choose which day of the week the contribution calendar starts with. The contribution calendar shows project contributions over the past year. You can view this calendar on each user profile. To access your user profile:
To change your contribution calendar start day:
After you change your calendar start day, refresh your user profile page.
Customize the format used to display times of activities on your group and project overview pages and user profiles. You can display times in a:
30 minutes ago.September 3, 2022, 3:57 PM.To use exact times on the GitLab UI:
{{< history >}}
{{< /history >}}
You can customize the format used to display times of activities on your group and project overview pages and user profiles. You can display times as:
2:34 PM.14:34.You can also follow your system's setting.
To customize the time format:
{{< history >}}
{{< /history >}}
CI/CD jobs generate JSON web tokens, which can include a list of your external identities. Instead of making separate API calls to get individual accounts, you can find your user identities in a single authentication token.
External identities are not included by default. To enable including external identities, see Token payload.
{{< history >}}
{{< /history >}}
Turn off the ability to follow or be followed by other GitLab users. By default, your user profile, including your name and profile photo, is public in the Following tabs of other users. When you deactivate this setting:
To remove the ability to be followed by and follow other users:
To access your Followers and Following tabs:
Give third-party services access to enhance the GitLab experience.
Configure your GitLab instance with Ona when you want to launch and manage code directly from your GitLab browser. Ona automatically prepares and builds development environments for your projects.
To integrate with Ona:
GitLab supports Sourcegraph integration for all public projects on GitLab.
To integrate with Sourcegraph:
You must be the administrator of the GitLab instance to configure GitLab with Sourcegraph.
{{< details >}}
{{< /details >}}
{{< history >}}
web_ide_oauth and web_ide_extensions_marketplace. Disabled by default.web_ide_oauth enabled on GitLab.com, GitLab Self-Managed, and GitLab Dedicated in GitLab 17.4.web_ide_extensions_marketplace enabled on GitLab.com in GitLab 17.4.web_ide_oauth removed in GitLab 17.5.vscode_extension_marketplace_settings feature flag in GitLab 17.10. Disabled by default.web_ide_extensions_marketplace enabled on GitLab Self-Managed, and vscode_extension_marketplace_settings enabled on GitLab.com and GitLab Self-Managed in GitLab 17.11.web_ide_extensions_marketplace and vscode_extension_marketplace_settings removed.{{< /history >}}
The VS Code Extension Marketplace provides access to extensions that enhance the functionality of the Web IDE and workspaces.
Prerequisites:
To integrate with the Extension Marketplace: