Dev Workshop, WPXPO
Samin Yaser, SWE Abdullah Al Asif, SWE
Ctrl+I
⌘I
Ctrl+Alt+I
⌃⌘I
Ctrl+Shift+I
⌘⇧I
Pro Tip: Bind "Toggle Copilot" to your favorite key!
#fileName
#folder
#symbol
#codebase
@terminal
@workspace
"chat.agent.maxRequests": 100
"github.copilot.chat.codesearch.enabled": true
"github.copilot.chat.agent.thinkingTool": true
"editor.aiStats.enabled": true
Use the Prompt Boost to easily improve your prompts.
#promptBoost
React hook:
"Create useDebouncedValue<T>(value, delay) with cleanup and type-safe API. Add example."
A11y:
"Refactor Modal for WCAG 2.2: focus trap, ARIA roles, ESC to close, Tab cycle. Add tests."
Inline Chat refactor (paste & run):
"Refactor selected code to be side-effect-free, improve naming, keep public API stable, and add JSDoc with examples. Don't change behavior."
REST API Endpoint:
"Create a REST API endpoint my-plugin/v1/products/featured returning featured products (wc_get_products). Require edit_posts capability. Add PHPDoc and follow standards."
my-plugin/v1/products/featured
wc_get_products
edit_posts
WP_Query Example:
"Write get_expiring_subscriptions() using WP_Query to fetch shop_subscription posts where _schedule_end is within 7 days. Return post IDs."
get_expiring_subscriptions()
WP_Query
shop_subscription
_schedule_end
WordPress Standards:
"Refactor selected PHP code to follow WP Coding Standards. Snake_case, PHPDoc, and wrap strings in __() with text domain my-plugin-text-domain."
__()
my-plugin-text-domain
WooCommerce Hook (PHP):
"Write a PHP function hooking into woocommerce_after_add_to_cart_button. It should show a text input field and save its value as custom cart item data."
woocommerce_after_add_to_cart_button
React Settings (Admin):
"Build a React component with a TextControl and Button. On click, save value via @wordpress/api-fetch to /my-plugin/v1/settings."
TextControl
Button
@wordpress/api-fetch
/my-plugin/v1/settings
.github/copilot/
Get the slides from GitHub
