Run commands via keyboard with Command Palette
Use Command Palette to quickly access various Microsoft Edge browser commands and DevTools commands from the keyboard.
Using Command Palette, you can directly access productivity and developer features that normally require clicking through several menus or using a series of keyboard shortcuts.
Enable Command Palette
By default, Command Palette isn't enabled. To enable the Command Palette experiment:
Go to
edge://flags
.In the Search flags text field, type Command Palette.
In the Command Palette dropdown menu, select Enabled.
Click the Restart button which appears in the lower right:
Open Command Palette
Command Palette provides access to Microsoft Edge commands, including various DevTools commands. This means you can use DevTools features without having to open DevTools first.
To open Command Palette:
Press
Ctrl
+Q
. Command Palette opens.Start typing in the input box. For example:
- Type tabs to display commands about tabs management.
- Type bookmark to display commands about bookmarks (shown below).
- Press
>
to list the available DevTools commands.
Press
Down Arrow
orUp Arrow
to select a command, or use the mouse wheel, and then pressEnter
.
Examples of several useful commands are shown below.
Open the Device Emulation tool
Use the DevTools Device Emulation tool to approximate how your page looks and responds on a mobile device.
To open the DevTools Device Emulation tool by using Command Palette:
Press
Ctrl
+Q
. Command Palette opens.Press
>
.Type device, press
Down Arrow
to select Mobile: Toggle device emulation, and then pressEnter
.
Create and access snippets
The DevTools Snippets tool allows you to save JavaScript code and run it on any webpage. If you run the same code repeatedly on webpages, create a snippet for that code, and then use Command Palette to quickly access your code snippet.
To open the DevTools Snippets tab by using Command Palette:
Press
Ctrl
+Q
. Command Palette opens.Press
>
.Type snippets, press
Down Arrow
to select Sources: Show Snippets, and then pressEnter
.
Manage browser tabs
Many useful tab-related commands are available in Command Palette, such as:
- Bookmark all tabs
- Move tab forward
- Open recently closed tab
- Search tabs
Press
Ctrl
+Q
. Command Palette opens.Type the word tab, press
Down Arrow
orUp Arrow
to select a command, and then pressEnter
.
Provide feedback
The Microsoft Edge DevTools team welcomes your feedback about this feature. If you noticed a bug with Command Palette or have an idea for improving it, please add a comment at: Feedback for the Command Palette experiment.
Feedback
Submit and view feedback for