Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ACF Field Key GeneratorNew to Visual Studio Code? Get it now.
ACF Field Key Generator

ACF Field Key Generator

Serhat Aksakal

|
1 install
| (1) | Free
Generate unique ACF (Advanced Custom Fields) field and group keys instantly
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ACF Field Key Generator

VS Code Marketplace License: MIT

Generate unique ACF (Advanced Custom Fields) field and group keys instantly in VS Code.

Features

  • Generate field_ keys for ACF field definitions
  • Generate group_ keys for ACF field groups
  • Keys follow the exact format used by ACF Pro: [prefix]_[hex_timestamp][random_hex]
  • Multiple trigger options: Command Palette, Keyboard Shortcuts, Context Menu
  • Automatically copies to clipboard AND inserts at cursor position

Usage

Command Palette

Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type "ACF":

  • ACF: Generate Field Key
  • ACF: Generate Group Key

Keyboard Shortcuts

Command Windows/Linux Mac
Generate Field Key Ctrl+Alt+F Cmd+Alt+F
Generate Group Key Ctrl+Shift+G Cmd+Shift+G

Context Menu

Right-click in any editor to access:

  • "ACF: Generate Field Key"
  • "ACF: Generate Group Key"

Key Format

Generated keys match the ACF Pro format exactly:

field_68775e5ca102e
group_59b2ab45699a0

Format breakdown:

  • field_ or group_ prefix
  • 8-character hex Unix timestamp
  • 5-character random hex suffix

Example

Working with ACF JSON files:

{
    "key": "field_68775e5ca102e",
    "label": "My Custom Field",
    "name": "my_custom_field",
    "type": "text"
}

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "ACF Field Key Generator"
  4. Click Install

Or install directly from VS Code Marketplace.

Requirements

  • VS Code 1.74.0 or higher

Release Notes

1.0.0

  • Initial release
  • Generate field keys (field_xxx)
  • Generate group keys (group_xxx)
  • Command palette, keyboard shortcuts, and context menu support
  • Clipboard and cursor insertion

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft