Preferences

Sofia Emelianova
Sofia Emelianova

Configure the appearance and behavior of DevTools and its panels usingSettings.Settings >Preferences. This tab lists both general customization options and panel-specific ones.

To set preferences, openSettings.Settings >Preferences and scroll to one of the sections described next.

The Appearance section in the Preferences tab.

To find out what each setting does, search this page for the setting's name and expand its description.

This reference indicates different settings with the following icons:

  • Checkbox. Checkboxes
  • Drop-down listsDrop-down.
  • Deprecated. Deprecated

To restore default preferences, scroll to the end of thePreferences tab and clickRestore defaults and reload.

Appearance

This section lists options that customize DevTools appearance.

ThemesDrop-down. sets a color theme for DevTools UI.

Themes:Changing DevTools theme from system preference to dark to light.
  • System preference
  • Light
  • Dark

Panel layoutDrop-down. arranges panes in panels.

AffectsElements >Styles and sister tabs, and theSources >Debugger pane. Theauto option makes the layout depend on DevTools width.

Panel layout:Changing the Element's panel layout from horizontal to vertical.
  • horizontal
  • vertical
  • auto

LanguageDrop-down. sets the locale for DevTools UI.

To apply this setting, reload DevTools.

Language:The Settings panel in Chinese.
  • Browser UI language
  • One of locale options, in this example, Chinese

Checkbox.EnableCtrl/Cmd +0-9 shortcut to switch panels lets you open panels using the keyboard.

This video shows how to switch between the tabs using the corresponding keyboard shortcuts.

Checkbox.Disable paused state overlay hides thePaused in debuggerPlay and step over buttons. overlay in the viewport when code execution is paused.

Checkbox.Show What's New after each update automatically opens theWhat's New drawer tab after each Chrome update.

The What's New drawer tab.

Sources

This section lists options that customize theSources panel.

Checkbox.Search in anonymous and content scripts lets you search all loaded JavaScript files, including those in Chrome extensions, using theSearch tab.

This video shows how to search for text in an extension source file.

Checkbox.Automatically reveal files in sidebar selects files on theSources >Page pane when you switch between tabs in theEditor.

This video shows how, with this option enabled, theSources panel selects files in the navigation tree as you switch between tabs.

Checkbox.Automatically pretty print minified sources makes those sources readable.

Whenpretty-printed, theEditor may show a single long code line in multiple lines, preceded by- to indicate that it's a line continuation.

Pretty-printed code in the Sources panel.

Checkbox.Allow DevTools to load resources, such as source maps, from remote file paths. Disabled by default for security reasons.

Caution:Remote file paths are a security vulnerability. It is best to use this option only if you are aware of consequences.

If left disabled, DevTools logs to theConsole messages similar to the following:

A message in the Console informing that loading from a remote file path is prohibited for security reasons.

Elements

This section lists options that customize theElements panel.

Network

This section lists options that customize theNetwork panel. Most of the options are the same as in the panel's settings.

Checkbox.Preserve log is the same asPreserve log in theNetwork panel. Saves requests across page loads.

This video first shows the requests log refreshed on page reload, then persisted when you enable this option.

Checkbox.Record network log is the same asRecord network log.Record network log in theNetwork panel. Starts or stops recording requests in the network log.

The Record network log button in the Network panel.

Checkbox.Enable network request blocking blocks requests that match patterns in theNetwork request blocking drawer.

This video first shows that the requests aren't blocked. Then, after you enable this option, a pattern in theNetwork request blocking drawer blocks them.

Checkbox.Disable cache (while DevTools is open) is the same asDisable cache in theNetwork panel. Disables browser cache.

The Disable Cache checkbox.

Checkbox.Allow to generate HAR with sensitive data adds options to theExport HAR button that let you export with or without sensitive data (sanitized).

Sensitive data is the data inCookie,Set-Cookie, andAuthorization headers.

The two options for the Export HAR button.

Checkbox.Color-code resource types highlights requests in different colors depending on their type in theWaterfall column of the network log.

The Waterfall column on the Network tab without and with color-coding.

Checkbox.Group network log by frame is the same asGroup by frames in theNetwork panel. This option groups requests initiated by inline frames.

The network request log with requests grouped by inline frames.

Checkbox.Force ad blocking on this site blocksdetected ads on the page while DevTools is open.

An ad-related network request shown in the Network panel with the Blocked Requests filter enabled.

Performance

This section lists options that customize thePerformance panel.

Flamechart mouse wheel actionDrop-down. assigns scroll or zoom action to your mouse wheel when you navigate the flame chart.

Flame chart mouse wheel action:Changing mouse wheel action from scrolls to zoom for the flame chart.
  • Scroll
  • Zoom

This example shows both scroll and zoom mouse wheel actions on a flame chart in thePerformance panel.

Console

This section lists options that customize theConsole. Most of the options are the same as inConsole Settings.

Similar options in Console and in Settings.

Checkbox.Hide network messages hides network messages in theConsole.

This video shows how to hide network messages with this option both inSettings.Settings and inConsole Settings.

Checkbox.Selected context only makes theConsole show messages only for the selected context: top, iframe, worker, or extension.

This video shows how to enable this option both inSettings.Settings and inConsole > Settings and select the context in theConsole.

Checkbox.Log XMLHttpRequests makes theConsole log XHR and fetch requests.

This video shows how to enable this option both inSettings.Settings andConsole > Settings and log theXHR finished loading messages to theConsole.

Checkbox.Show timestamps makes theConsole show timestamps next to messages.

Messages with timestamps listed in the Console.

Checkbox.Autocomplete from history makes theConsole suggest commands you ran earlier as you type.

You can find the same option inConsole > Settings.

Autocomplete drop-down with a command option from Console history.

Checkbox.Accept autocomplete suggestion on Enter makes theConsole accept the selected suggestion from the autocomplete drop-down when you pressEnter.

This video shows what happens when you pressEnter before and after enabling this option.

Checkbox.Group similar messages in console makes theConsole group similar messages together.

You can find the same option inConsole > Settings.

Similar messages in the Console grouped together.

Checkbox.Show CORS errors in console makes theConsole show theCORS errors it logged.

You can find the same option inConsole > Settings.

Console shows CORS errors.

Checkbox.Eager evaluation makes theConsole show a preview of an output as you type a command.

You can find the same option inConsole > Settings.

This video shows various output previews.

Checkbox.Treat code evaluation as user action turns any command you run in theConsole into user interaction.

In other words, it setsnavigator.userActivation.isActive totrue upon evaluation. You can find the same option inConsole > Settings.

This video shows the evaluation result ofnavigator.userActivation.isActive before and after enabling this option.

Checkbox.Automatically expand console.trace() messages makes theConsole display expandedconsole.trace() messages when it logs them.

An expanded console.trace() message in the Console.

Checkbox.Preserve log upon navigation makes theConsole log aNavigated to message upon every navigation and save logs across all pages.

You can find the same option inConsole > Settings.

The Console shows 'Navigated to' messages and saves logs across different pages.

Extension

This section lists options that customize link handling for Chrome DevTools extensions.

Link handlingDrop-down. sets an option to open files with when you click a link to a source file, for example, in theElements >Styles pane.

Link handling:Choosing an option to open links with.
  • Auto. Opens files in theSources panel by default.
  • Arbitrary option that can be added by a DevTools extension.

Persistence

This section lists options that control how DevTools saves the changes you make.

Checkbox.Enable local overrides makes DevTools persist changes you make to sources across page loads.

For more information, seeLocal Overrides.

Debugger

This section lists options that control theDebugger behavior.

Checkbox.Disable JavaScript lets you see how your web page looks and behaves whenJavaScript is disabled.

Reload the page to see if and how the page depends on JavaScript while loading.

When JavaScript is disabled, Chrome shows the correspondingDisabled JavaScript. icon in the address bar and DevTools shows a warningWarning. icon next toSources.

An icon in the address bar and a warning icon next to Sources in DevTools.

Checkbox.Disable async stack traces hides the "full story" of the async operation in theCall Stack.

By default, theDebugger tries to trace async operations if the framework you're using supports such tracing.

The async operation in the Call Stack.

For more information, seeView async stack traces.

Global

This section lists options that have global effects in DevTools.

Checkbox.Auto-open DevTools for popups opens DevTools when you click links that open new tabs. That is, all links withtarget=_blank.

This video first shows how to click a link and open a new tab *without* DevTools. Then when you enable this option, a new tab opens *with* DevTools.

Checkbox.Search as you type makes DevTools "jump" to the first search result as you type your search query. If disabled, DevTools takes you to the result only when you pressEnter.

This video first shows how DevTools "jumps" as you type a search query. Then when you enable this option, DevTools takes you to the first result when you pressEnter.

Sync

This section lets you set up the synchronization of settings between devices.

Checkbox.Enable settings sync lets you sync DevTools settings across multiple devices.

To use this setting, firstenable Chrome Sync. For more information, seeSync settings.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-07-16 UTC.