A practical guide to creating custom code snippets in Visual Studio Code. Covers the difference between global and project-scoped snippets, the JSON structure of snippet files (scope, prefix, body, description), tab stop syntax ($1, $2), special variables like $TM_FILENAME_BASE, and real-world examples including a fetch request snippet and a React functional component with TypeScript props.

6m read timeFrom playfulprogramming.com
Post cover image

Sort: