Skip to content

Feature: Auto-complete WP JSON var strings #1

Description

@joemaller

As a quick fix, add something like this to the User Snippets file for JSON files

	"WordPress Presets": {
		"prefix": "var:preset",
		"body": "var:preset|${1|spacing\\|20,spacing\\|30,spacing\\|40,spacing\\|50,spacing\\|60,spacing\\|70,spacing\\|80,font-size\\|x-small,font-size\\|small,font-size\\|medium,font-size\\|large,font-size\\|x-large,font-size\\|xx-large,color\\|primary,color\\|secondary|}",
		"description": "WordPress presets"
	}

It should be possible to scan the theme.json file to pre-populate a list of relevant replacements

Note: Linked snippets didn't work, but this allows for fine-tuning by typing characters from the desired replacement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions