Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>PayloadCMS SnippetsNew to Visual Studio Code? Get it now.
PayloadCMS Snippets

PayloadCMS Snippets

TechieCouch

|
3,297 installs
| (1) | Free
This extension contains code snippets for PayloadCMS
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code PayloadCMS snippets


Version Installs Ratings

This extension contains code snippets for PayloadCMS.

Installation

In order to install an extension you need to launch the Command Palette (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions. There you have either the option to show the already installed snippets or install new ones.

Supported languages (file extensions)

  • JavaScript (.js)
  • TypeScript (.ts)

Snippets

Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.

Trigger Content
!pfa→ Create PayloadCMS Array - Field
!pfc→ Create PayloadCMS Checkbox - Field
!pfd→ Create PayloadCMS Date - Field
!pfe→ Create PayloadCMS Email - Field
!pfg→ Create PayloadCMS Group - Field
!pfn→ Create PayloadCMS Number - Field
!pfp→ Create PayloadCMS Point - Field
!pfrg→ Create PayloadCMS Radio Group Field
!pfrho→ Create PayloadCMS Relationship - Has One - Field
!pfrhm→ Create PayloadCMS Relationship - Has Many - Field
!pfrhop→ Create PayloadCMS Relationship - Has One Polymorphic - Field
!pfrhmp→ Create PayloadCMS Relationship - Has Many Polymorphic - Field
!pfr→ Create PayloadCMS Row - Field
!pfs→ Create PayloadCMS Select - Field
!pft→ Create PayloadCMS Text - Field
!pfta→ Create PayloadCMS TextArea - Field
!pfu→ Create PayloadCMS Upload - Field
!pc→ Create PayloadCMS Collection
!pcu→ Create PayloadCMS Collection with Upload
!pfb→ Create PayloadCMS Block - Field
!pfbf→ Create PayloadCMS Block Field File
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft