Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: VSCode snippets #21

Open
SergiArias opened this issue Jan 3, 2022 · 0 comments
Open

Feature request: VSCode snippets #21

SergiArias opened this issue Jan 3, 2022 · 0 comments

Comments

@SergiArias
Copy link

As most of the roots sage fans do, we write a lot of acf builder fields. Wouldn't it be interesting to have some snippets to complement the cheatsheet and thus write it faster?

As an example I have:

	"ACFB textarea": {
		"prefix": "ata",
		"body": [
			"->addTextarea('$1', ['label' => '${2:$1}', 'new_lines' => 'br', 'rows' => '${3:2}'])$0",
		],
		"description": "Textarea ACF Builder"
	},

Or:

	"ACFB group": {
		"prefix": "agr",
		"body": [
			"->addGroup('$1')",
			"    $0",
			"    ->endGroup()"
		],
		"description": "Group ACF Builder"
	},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant