Skip to content

rhrebecek/vscode-next-typescript-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextJS

VS Code NextJS Typescript snippets

This extension contains code snippets for NextJS in TypeScript syntax.

Installation

In order to install an extension you need to launch the Command Palette (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions. There you have either the option to show the already installed snippets or install new ones.

Supported languages (file extensions)

  • JavaScript (.js)
  • TypeScript (.ts)
  • JavaScript React/Next (.jsx)
  • TypeScript React/Next (.tsx)

Usage

When installing the extension NextJS development could be really fun.

Snippets

Below is a list of all available snippets and the triggers of each one. The means the TAB key.

Trigger Content
rc→ React function component skeleton
np→ Next function page skeleton

The following table lists all the snippets that can be used for prop types. Every snippet regarding prop types begins with r or n so it's easy to group it all together and explore all the available options. On top of that each prop type snippets has one equivalent when we need to declare that this property is also required.

Trigger Content
rt→ React Testing library base skeleton test

About

Code snippets for NextJS development in TypeScript syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published