Giter Site home page Giter Site logo

wenfangdu / vscode-snippet-generator Goto Github PK

View Code? Open in Web Editor NEW
53.0 1.0 5.0 20.59 MB

πŸ“œ Generate snippets from code in VSCode

Home Page: https://marketplace.visualstudio.com/items?itemName=wenfangdu.snippet-generator

License: MIT License

JavaScript 100.00%
utility vscode vscode-extension snippet-generator productivity

vscode-snippet-generator's Introduction

vscode-snippet-generator's People

Contributors

wenfangdu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vscode-snippet-generator's Issues

Automatically insert snippets to the snippet file

First of all, kudos for making this extension, it works like a charm.

However, I think it would be even greater if it automatically updated the snippets configuration file, rather than having the snippet copied to the user's clipboard and then expecting him/her to paste it on the snippets file.

Do you think this is doable? I never developed a VSCode extension, nor do I know the capabilities of VSCode's API.

If it is, I would be glad to give it a try.

Does not properly escape $, making it tiresome for Powershell Snippets

I'm building a repository of PowerShell scripts and I really love your addon, but it does not add the required "\\" before a dollar sign. This means I have to go through and manually add escape characters for each snippet since all PS variables are preceded with $. Would be great if you supported this.

Not to detract from your hard work. It's an excellent extension.

Not escaping "$"

In PHP, when the selected code contains "$", your extension strips it out while generating the snippet body.

[FR] Toast message refinement

Refine the toast message to contain "please use 'Snippets: Configure User Snippets' to paste the generated snippet".

make extension available on `https://open-vsx.org/`

hi there!
the extension was highly recommended to me, but i find myself to be currently unable to install it in vs-codium since they are using open-vsx as the extension source.

-> would it be possible to provide the extension there too?

br and thanks for you work!

gabriel

Minor, don't escape vscode snippet variables

Vscode supports certain variables in snippets such as $TM_FILEPATH, it would be nice if the $ was not escaped when generating a snippet for these variables.

I suppose there is some ambiguity about what to do here since some of the variable names like $UUID, $RANDOM, $CURRENT_YEAR etc could plausibly be used as variables, such as in a bash script. But I think at least the $TM_* variables are unlikely to be used elsewhere and may be commonly useful in various snippets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.