Contenidos
Create a Snippet through the Sources panel
- Open the Snippets pane.
- Click New snippet.
- Enter a name for your Snippet then press Enter to save.
Run Snippets
Run a Snippet from the Sources panel
- Open the Snippets pane.
- Click the name of the Snippet that you want to run. The Snippet opens in the Code Editor.
- Click Run Snippet, or press Control+Enter or Command+Enter (Mac).
Run a Snippet with the Command Menu
- Focus your cursor somewhere inside of DevTools.
- Press Control+O or Command+O (Mac) to open the Command Menu.
- Type the
!
character followed by the name of the Snippet that you want to run. - Press Enter to run the Snippet.