Git Product home page Git Product logo

11ty-vscode-snippet-generator's People

Contributors

jwdeane avatar

Watchers

 avatar  avatar

11ty-vscode-snippet-generator's Issues

Handle indentation

TODO

  • allow existing \t characters to pass through untouched 1e18a72
  • convert space characters at the beginning of a line to \t c50b6a3
  • config item that assumes a default indent of 2

Create 11ty filter to populate the snippet body with an array of the source data (line by line)

https://github.com/25thhour/11ty-vscode-snippet-generator/blob/04fbb2144a39c2f2e79f8fc149629e9ff153622c/_includes/vscode-snippet-template.njk#L4

Ref: 11ty filter documentation

A vscode snippet body is:

…is one or more lines of content, which will be joined as multiple lines upon insertion. Newlines and embedded tabs will be formatted according to the context in which the snippet is inserted.
https://code.visualstudio.com/docs/editor/userdefinedsnippets

An example implementation can be found in the Snippet Generator source code:

https://github.com/pawelgrzybek/snippet-generator/blob/2fbb572fb07820715502da910120b8f4e3287c26/src/components/VSCode.js#L14-L17

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.