Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Fos code snippetsNew to Visual Studio Code? Get it now.
Fos code snippets

Fos code snippets

Márcio Santos

|
91 installs
| (1) | Free
Code snippets for javascript and react projects
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FOS React and javascript snippets

Version Install Downloads Ratings

Installation

Visual Studio Marketplace

Launch Quick Open:

  • Linux: Ctrl+P
  • macOS: ⌘P
  • Windows: Ctrl+P

Paste the following command and press Enter:

ext install oicramps-meli.fos-snippets

Supported languages (file extensions)

  • JavaScript (.js)
  • JavaScript React (.jsx)

Basic

Prefix Description

React

Prefix Description
mptr→ Creates a propTypes block and its import
mptdr→ Creates a propTypes and defaultProps blocks along with its import
mdp→ Creates a defaultProps block

React hooks

Prefix Description

Unit tests

General

Prefix Description
mtr→ Creates a testing library test pattern
mtcsr Creates a testing library test pattern with custom state (CommonsJS)
mdes→ Creates a test describe block
msd→ Creates a testing library debug command
mturr→ Creates a custom render import (CommonsJS)
mtur→ Creates a custom render import (ESModules)
msc→ Creates a setup execution extracting the returned container
mit→ Creates a test block

Queries

Prefix Description
mgbr→ Creates a getByRole selector
mgbrn→ Creates a getByRole selector with a name option
mgblt Creates a getByLabelText selector
mgbt Creates a getByText selector
mgbti Creates a getByTestId selector

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft