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

Useful Group Snippets

Jeff Calaway

|
81 installs
| (0) | Free
Snippets that are useful for Useful Group
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snippet Prefixes

Prefix Description
inc- Includes Snippets
temp- Template Snippets
dot- DOT File Snippets
wp- WordPress Snippets
ad- Atomic Design Snippets
a- ACF Snippets
m- Mixin Snippets
h- HTML Snippets
j- Javascript Snippets
c- Class Snippets
st- Stories Snippets
vs- Visual Studio Snippets

"Includes" Snippets

Snippet Description
inc-mc Module Class
inc-pc Parent Class
inc-pr Post Type Registration
inc-pi Post Type Interface
inc-dns Post Type Functions
inc-dn Post Type Function
inc-cdn Post Type Function from Clipboard
inc-f Function
inc-cf Function from Clipboard
inc-phd Handle Post Data (Singular)
inc-phds Handle Post Data (Plural)
inc-tr Taxonomy Registration
inc-ti Taxonomy Interface
inc-tfs Taxonomy Functions
inc-tf Taxonomy Function
inc-td Template Data
inc-tb Template Blocks
inc-sg Set Global
inc-fn File Name
inc-cfn File Name (Capitalized)
inc-dn Directory Name
inc-dnc Directory Name (Capitalized)

"Template" Snippets

Snippet Description
temp-s Template Setup
temp-da Template "do_action"

"DOT File" Snippets

Snippet Description
dot-env Environment Setup

"WordPress" Snippets

Snippet Description
_ Debug Log
wp-set Set Page for WordPress
wp-h Header
wp-f Footer
wp-n Nav Menu
wp-q Query
wp-tq Tax Query
wp-mq Meta Query
wp-gp Get Posts
wp-whp While Have Posts
wp-fi Featured Image
wp-enq Enqueue File
wp-laj Localize w/ AJAX
wp-ajr Ajax Request
wp-gr Gravity Form Import
wp-forgot Forgot the Login
wp-debug Debug Log Definitions for wp-config
wp-urls URL Settings for wp-config

"ACF" Snippets

Snippet Description
a-gf Get Field
a-gsf Get Sub Field
a-gfo Get Field (Option)
a-gft Get Field (Taxonomy)
a-rep Repeater
a-flex Flex
a-op Option Page
a-sop Sub Option Page

"SASS/Mixin" Snippets

Snippet Description
imp Import
inc Include Mixin
m-break Breakpoint Mixin
m-ff Font Family Mixin
m-fs Font Size Mixin
m-cp Center Position Mixin
m-sb Set Behind Mixin
m-ma Margin Auto Mixin
m-so Set Overlay Mixin
m-cf Clearfix Mixin
m-t Transition Mixin
m-pc Placeholder Color Mixin
m-bc Background Cover Mixin
m-gs Grayscale Mixin
m-ar Aspect Ratio Mixin
m-gr Flexbox Grid Mixin
m-grs Flexbox Grid Shift Mixin
c Color CSS Variable
cc Color Variable
var CSS Variable
bg Background Color (--bg)
bgc Background Color (--color)
bgt Background Color (--theme)
bgv Background Color (--var)
tc Text Color (--text)
tcc Text Color (--color)
tct Text Color (--theme)
tcv Text Color (--var)
focus Keyboard Focus
class Parent Class
before Before Pseudo
after After Pseudo
before-after Before & After Pseudo
svgc SVG Stroke & Fill Color
fl Flexbox
flj Flexbox (w/ Justify-Content)
fla Flexbox (w/ Align-Items)
flja Flexbox (w/ Justify-Content & Align-Items)
flc Flexbox Column
flcj Flexbox Column (w/ Justify-Content)
flca Flexbox Column (w/ Align-Items)
flcja Flexbox Column (w/ Justify-Content & Align-Items)

"Documentation" Snippets

Snippet Description
d-d Directory
d-di Directory Item
d-s Section
d-ds DocBlock Section
d-ss Sub Section

"HTML" Snippets

Snippet Description
h-set Setup Page for HTML
copy ©
bgimg Background Image Setup for Divs

"Javascript" Snippets

Snippet Description
_ Console Log
j-set Setup File for Javascript
j-pset Setup File for Javascript Plugin
j-aj Ajax Request
each Each Statement
if If Statement
exists Check if exists

"PHP" Snippets

Snippet Description
php Single Line PHP Brackets
phpp Multi-Line PHP Brackets
if If Statement
else Else Statement
elseif ElseIf Statement
for For Loop
foreach ForEach Loop
end Closing Line for Loop
class Setup For New Class
year Year

"Class" Snippets

Snippet Description
class Class
c-pm Parent Module
c-sm Submodule
c-rm Register Module
c-aa Add Action
c-ra Remove Action
c-afi Add Filter
c-rfi Remove Filter
c-dn Public Function
c-prf Private Function

"Stories" Snippets

Snippet Description
st-c Stories Class
st-s Story
st-sm Story (Modifier)
st-smc Story (Modifier - From the clipboard)
st-pt Placeholder Text Function
st-pi Placeholder Image Function

"Visual Studio" Snippets

Snippet Description
vs-fn-l File Name (Lowercase)
vs-fn-c File Name (Capitalized)
vs-fn-ul File Name (Underscores & Lowercase)
vs-fn-uc File Name (Underscores & Capitalized)
vs-fn-sl File Name (Spaces & Lowercase)
vs-fn-sc File Name (Spaces & Capitalized)
vs-cfn-l Class File Name (Lowercase)
vs-cfn-c Class File Name (Capitalized)
vs-cfn-ul Class File Name (Underscores & Lowercase)
vs-cfn-uc Class File Name (Underscores & Capitalized)
vs-cfn-sl Class File Name (Spaces & Lowercase)
vs-cfn-sc Class File Name (Spaces & Capitalized)
vs-sfn-l Stories File Name (Lowercase)
vs-sfn-c Stories File Name (Capitalized)
vs-sfn-ul Stories File Name (Underscores & Lowercase)
vs-sfn-uc Stories File Name (Underscores & Capitalized)
vs-sfn-sl Stories File Name (Spaces & Lowercase)
vs-sfn-sc Stories File Name (Spaces & Capitalized)
vs-dn-l Directory Name (Lowercase)
vs-dn-c Directory Name (Capitalized)
vs-dn-ul Directory Name (Underscores & Lowercase)
vs-dn-uc Directory Name (Underscores & Capitalized)
vs-dn-sl Directory Name (Spaces & Lowercase)
vs-dn-sc Directory Name (Spaces & Capitalized)
vs-dn-fl Directory Name (1st Letter)
vs-pdn-l Parent Directory Name (Lowercase)
vs-pdn-c Parent Directory Name (Capitalized)
vs-pdn-fl Parent Directory Name (1st Letter)

License

MIT

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