Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.46 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.46 KB

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