π Generate snippets from code in VSCode
Command: Generate Snippet
π Generate snippets from code in VSCode
Home Page: https://marketplace.visualstudio.com/items?itemName=wenfangdu.snippet-generator
License: MIT License
π Generate snippets from code in VSCode
Command: Generate Snippet
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.
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.
i can't seem to figure out how to delete the snippets i created with this extension?
In PHP, when the selected code contains "$", your extension strips it out while generating the snippet body.
Hi,
Does anyone know how to use this extension??
Refine the toast message to contain "please use 'Snippets: Configure User Snippets' to paste the generated snippet".
Hello!
Usually, a snippet is followed by other snippets, or is inserted between other snippets. Perhaps add a comma at the end of the snippet?
That is, replace this line:
vscode-snippet-generator/extension.js
Line 71 in 6f6425c
with:
.join('\n') + ","
(sorry, cannot make a PR)
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
How to use a variable in AL with Quotation Marks (") So for example DocumentLine.SetRange("Document Type"...
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.