Nextjs For Dev
This VS Code extension provides useful code snippets for Nextjs JavaScript and TypeScript Components.
Features
JavaScript Snippets
njcac - Nextjs javascript arrow components
njcacp - Nextjs javascript arrow components with params
TypeScript Snippets
nsfc - NextJs Static Function Component
ndpfc - NextJs Dynamic params Function Component
ncfc - NextJs Client Function Component
nspfc - NextJs Static Params Function Component
Usage
- Install the extension
- Open a JavaScript or TypeScript file
- Type one of the snippet prefixes (e.g.,
nsfp )
- Press
Tab to insert the snippet
- Use
Tab to navigate through the placeholders
Customization
You can add more snippets by modifying the JSON files in the snippets directory:
javascript.json for JavaScript snippets
typescript.json for TypeScript snippets
| |