Muokkaa

Jaa


Customize keyboard shortcuts

In the Shortcuts page of Settings, you can view the defined shortcuts for Microsoft Edge DevTools, define your own shortcut for a specific action, or use a preset to match the default shortcuts from Microsoft Visual Studio Code.

For the default keyboard shortcuts, see Keyboard shortcuts.

Match keyboard shortcuts from Visual Studio Code

To match the keyboard shortcuts in Microsoft Edge DevTools to their equivalent actions in Visual Studio Code:

  1. To open DevTools, right-click the webpage, and then select Inspect. Or, press Ctrl+Shift+I (Windows, Linux) or Command+Option+I (macOS). DevTools opens.

  2. In DevTools, in the Activity Bar, click the Customize and control DevTools (Customize and control DevTools icon) button, and then click the Settings (Settings icon) button. Or, press F1.

  3. In the Settings panel, select the Shortcuts page.

  4. In the upper right, in the Match shortcuts from preset dropdown list, select Visual Studio Code instead of DevTools (Default):

    Matching keyboard shortcuts in DevTools to Visual Studio Code

For example, to pause or continue running a script in Visual Studio Code, you press F5. But with the DevTools (Default) preset, to pause or continue running a script, you press F8. When you change the preset to Visual Studio Code, you now also press F5 in DevTools, just like in Visual Studio Code.

See also:

Edit the keyboard shortcut for a DevTools action

  1. To open DevTools, right-click the webpage, and then select Inspect. Or, press Ctrl+Shift+I (Windows, Linux) or Command+Option+I (macOS). DevTools opens.

  2. In DevTools, in the Activity Bar, click the Customize and control DevTools (Customize and control DevTools icon) button, and then click the Settings (Settings icon) button. Or, press F1.

  3. In the Settings panel, select the Shortcuts page.

  4. Select the action you want to customize. For example, in the Debugger section, click anywhere in the Pause script execution row. The row becomes highlighted.

  5. Click the Edit shortcut (The 'Edit shortcut' button) icon:

    Select the action to customize from the Shortcuts page in Settings

  6. To bind the shortcut keys to the action, make sure the text box next to the action has focus, and then use the keyboard to press the shortcut key combination.

  7. To bind more than one shortcut combination to an action, click the Add a shortcut link, make sure the text box next to the action has focus, and then use the keyboard to press the additional shortcut key combination:

    Select the keys you want to assign to the action

  8. Click the Confirm changes ('Confirm changes' icon) button:

    The 'Confirm changes' button to save the keyboard shortcut

Icons and buttons

Tooltip and button icon Description
Edit shortcut ('Edit shortcut' icon) Modifies an existing shortcut.
Remove shortcut (The 'Remove shortcut' icon) Removes a keyboard shortcut for an action while you are editing the keyboard shortcuts for an action.
The Add a shortcut link Adds an additional keyboard shortcut for an action while you are editing the keyboard shortcuts for an action.
Reset shortcuts for action (The 'Reset shortcuts for action' icon) This icon displayed next to a checkbox indicates that you have customized the keyboard shortcut.
Confirm changes (The 'Confirm changes' icon) Saves a modified or added keyboard shortcut while you are editing the keyboard shortcuts for an action.
Discard changes (The 'Discard changes' icon) Discards your changes while you are editing the keyboard shortcuts for an action.
The Restore default shortcuts button Resets all shortcuts.

Assign a shortcut key combination that's already in use

If a keyboard shortcut is currently assigned to one action, it can't be assigned to another action.

To assign a shortcut key combination that's already in use:

  1. Try to assign the shortcut key combination to the new action. An error message says which action the shortcut is already assigned to.

  2. Click the row for the action that already has the keyboard shortcut assigned to it.

  3. Delete its keyboard shortcut.

  4. Click the row for the action that you want to assign the shortcut key combination to.

  5. Add that keyboard shortcut to the new action, as described above.

See also