Select text (optional) Open command palette (usually Ctrl + Shift + P ) Execute Emmet: Wrap with Abbreviation. Enter a tag div (or an abbreviation . wrapper>p ) Hit Enter.