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.
- 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.
No additional requirements or dependencies are necessary to use this extension.
This extension does not contribute any VS Code settings.
No known issues at this time.
Initial release of the Code to Snippet extension.
Now the extension will automatically save the snippet to the workspace folder and copy the snippet to the clipboard.
Fixed a bug where the extension is not able to save the snippet to the workspace folder.
- Select the code you want to convert into a snippet.
- Run the
Convert to Snippet
command from the command palette or the context menu. - Provide a description and prefix for the snippet when prompted.
Enjoy!