Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Youtube player embed snippetsNew to Visual Studio Code? Get it now.

Youtube player embed snippets

Huang An Sheng

|
2,460 installs
| (0) | Free
Youtube player embed snippets for Visual Studio code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Youtube player embed snippets

Youtube player embed snippets for Visual Studio code

Usage

Get a Youtube embed iframe tag

  1. Copy video ID from youtube URL.

  2. Type youtube-embed-default in a HTML file, and replace YOUTUBE_VID to any youtube video ID.

16:9 aspect ratio size Youtube embed iframe

  1. Make sure to reset <body> with margin: 0;.

  2. Type youtube-embed-full-width-16-9 to add a full device width 16:9 aspect ratio Youtube embed player in HTML.

Full screen size Youtube embed iframe

  1. Type youtube-embed-fullscreen.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft