Giter Site home page Giter Site logo

Comments (2)

robole avatar robole commented on September 24, 2024

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.

Kazam_screenshot_2024-02-11_18-02-26

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.

skwde avatar skwde commented on September 24, 2024

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)

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.