Code Monkey home page Code Monkey logo

twig-braces-helper's Introduction

Twig Braces Helper

A helper which adds spaces and percentage sign when working with Twig templates.

Features

The extension will add an additional space after the curser, when adding two opening curly braces

Before:

{{ |}}
   ^cursor

After:

{{ | }}
   ^cursor

If a curly brace followed by a percent sign is entered, the extension will add a space and another percentage sign to the closing sign

Before:

{% |}
   ^cursor

After:

{% | %}
   ^cursor

The extension expects that the closing brace is added by the editor in general and executes its function after the first space was added.

Configuration

All options are by default enabled.

  • twig-braces-helper.enable: enable/disable the extension.

Based on

This extension is based on the extension Spaces Inside Braces from AiryShift. Thank you very much for the work!

Icon

The icon is from the set "Curly Brackets" by Marek Polakovic from the Noun Project, available at The Noun Project under Creative Commons Attribution 3.0 (CC BY 3.0 US). Full terms at Creative Commons.

The icon was cropped and resized from its original resolution to 128 by 128 pixels.

twig-braces-helper's People

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.