Abhishekkumar2021 / code-to-snippet

A simple VS code extension to generate snippets from selected code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code to Snippet README

This Visual Studio Code extension allows you to convert selected code into snippets. Simply select the code you want to convert, run the command, provide a description and prefix for the snippet, and the extension will generate the snippet for you.

Features

  • Convert selected code into snippets.
  • Save snippets to workspace folder.
  • Automatically copy the generated snippet to the clipboard.
  • Specify a description and prefix for the snippet.

Requirements

No additional requirements or dependencies are necessary to use this extension.

Extension Settings

This extension does not contribute any VS Code settings.

Known Issues

No known issues at this time.

Release Notes

1.0.0

Initial release of the Code to Snippet extension.

1.1.0

Now the extension will automatically save the snippet to the workspace folder and copy the snippet to the clipboard.

1.1.1

Fixed a bug where the extension is not able to save the snippet to the workspace folder.

Usage

  1. Select the code you want to convert into a snippet.
  2. Run the Convert to Snippet command from the command palette or the context menu.
  3. Provide a description and prefix for the snippet when prompted.

Enjoy!

About

A simple VS code extension to generate snippets from selected code


Languages

Language:TypeScript 72.1%Language:JavaScript 27.9%