Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>YS-VS-Code-ExtensionNew to Visual Studio Code? Get it now.
YS-VS-Code-Extension

YS-VS-Code-Extension

YossiShemi

|
85 installs
| (0) | Free
Yossi Shemi - useful snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code YS Snippets

This extension for Visual Studio Code adds snippets for easy templates in HTML, CSS ,TypeScript and JavaScript.

Use Extension

See the CHANGELOG for the latest changes

Usage

Type "ys-" for generating optional snippets, press enter, and the snippet unfolds.

Alternatively, press Ctrl+Space (Windows, Linux) or Cmd+Space (macOS) to activate snippets from within the editor.

JavaScript+TypeScript Snippets

Snippet Purpose
ys-import import template
ys-arrowFunction arrow function
ys-class-js generate JS class
ys-class-ts generate TS class
ys-random-number random number
ys-asyn-callback asynchronously remote demo GET request using callback
ys-asyn-callback-use Calling callback
ys-asyn-promise asynchronously remote demo GET request using promise
ys-asyn-promise-use Calling promise
ys-asyn-obsrvable synchronously remote demo GET request
ys-asyn-obsrvable-use Calling observable
ys-arr-map array.map()
ys-arr-filter array.filter()
ys-arr-reduce array.reduce()

HTML Snippets

Snippet Purpose
ys-hello Hello World

CSS Snippets

Snippet Purpose
ys-flex-center display flex center
ys-mediaQuery media queries

React.js Snippets

Snippet Purpose
ys-updateState update 1 object in state (React)

Angular Snippets

Snippet Purpose
ys-ng-if-else Angular ng-if-else template

Installation

  1. Install Visual Studio Code 1.41 or higher
  2. Launch Code
  3. From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
  4. Select Install Extension
  5. Choose the extension
  6. Reload Visual Studio Code
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft