Skip to content

How to make autocomplete working with twig files? #220

@webmasterpf

Description

@webmasterpf

Hi,

I'm not able to autocomplete work into my twig files.
In my project I have this:

/images
/templates/.twig files

My config.cson (inspired by examples found in issues):

"autocomplete-paths":
  scopes: [
    {
      scopes: [
        "images"
      ]
      prefixes: [
        "include directory ~"
      ]
      extensions: [
        "png"
        "jpg"
        "jpeg"
        "gif"
        "twig"
      ]
      replaceOnInsert: [
        [
          "(@[2-9]x)\\.png?$"
          ".png"
        ]
      ]
      relative: true
      includeCurrentDirectory: true
      projectRelativePath: false
    }
  ]

I would to autocomplete this kind of code:
{% include directory ~ '/includes/dedicates_inc/inc_cdi_html.twig' %}or for Sass Mixin:
@include backgroundImage("PNG/[email protected]");

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions