Comments (2)
hi @skwde ,
Thanks for your interest in the extension.
I understand that its awkward to deal with the builtin snippets. The files are set to read-only by default. They are not meant to be modified. Personally, I disable the ones I don't want and write my own snippet in a language snippet file/user snippet file.
What do you wish to copy exactly? For example, the "Insert fenced code block" markdown snippet as below.
"Insert fenced code block": {
"prefix": "fenced codeblock",
"body": [
"```${1|python,c,c++,c#,ruby,go,java,php,htm,css,javascript,json,markdown,console|}",
"${TM_SELECTED_TEXT}$0",
"```"
],
"description": "Insert fenced code block"
},
If you want to copy a field such as body
, you can copy from the webview directly - its like a web page. Just highlight the text and the usual copy shortcuts work: Ctrl
+C
on keyboard, or right-click and select Copy
from the context menu.
I'm not sure when I would be able to get to this. This is nice to have but is not an important feature to add.
All the best
Rob
from vscode-snippets-ranger.
Hi @robole, thanks for your quick reply.
Yes, I agree that modifying those is awkward. I'll do the same. I do not modify those but rather create my own.
Sometimes I just want to override say the trigger and in that case it would be helpful to quickly copy the entire default snippet.
"Insert fenced code block": {
"prefix": "fenced codeblock",
"body": [
"```${1|python,c,c++,c#,ruby,go,java,php,htm,css,javascript,json,markdown,console|}",
"${TM_SELECTED_TEXT}$0",
"```"
],
"description": "Insert fenced code block"
},
to put it quickly into my own snippet file.
from vscode-snippets-ranger.
Related Issues (10)
- Ability to search snippets HOT 1
- remnote vscode: Oucho Gaucho! 🌵 Nothing to round up! 🤠 HOT 2
- Stuck @ 'Rounding them up!' 😢 HOT 6
- Support workspace snippets HOT 2
- Error loading webview HOT 1
- Escaped backslashes (2 consecutive backslashes) not appearing correctly in HTML output HOT 4
- dollar sign disappears when creating new snippet from selection HOT 2
- Delete action button does not delete snippet correctly HOT 1
- Not loading snippets in view - "Cannot read properties of undefined (reading '0')'" error HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-snippets-ranger.