How To Create Custom Instructions With Slash Commands in VS Code

Опубликовано: 31 Июль 2026
на канале: AI and Technology Simplified
253
4

How To Create Custom Instructions With Slash Commands in VS Code

Learn how to easily set up custom instructions in Visual Studio Code for GitHub Copilot and other AI assistants like Claude and Gemini! In this 2026 update, VS Code has introduced powerful built-in slash commands that make configuring your AI workspace simpler than ever.

In this tutorial, we cover how to generate agents.md files using the /init command, the difference between global and scope-loaded instructions, and how to use the /create command to generate custom prompts, instructions, and agents directly in your project.

What you’ll learn:

How to use the /init command to automatically generate custom instructions from your README file.

The difference between global context (like agents.md) and scope-loaded instructions for specific languages (HTML, Python, React, etc.).

Step-by-step guide to using /create instructions, /create prompt, and /create agent.

⏱️ Timestamps:
[00:00] - Introduction to VS Code Custom Instructions
[00:21] - Using the /init command to generate agents.md
[01:37] - Why you need a README.md file for AI setup
[02:29] - Global Instructions vs. Scope-Loaded Instructions
[03:09] - How to use the /create instructions command
[04:40] - Generating custom reusable prompts with /create prompt
[05:43] - Creating custom AI agents with /create agent

Don't forget to like and subscribe for more coding tutorials and AI technology updates!

#VSCode
#GitHubCopilot
#CustomInstructions
#AIAgents
#Visual StudioCode
#CodingTutorial
#WebDevelopment
#Programming
#ClaudeAI
#GeminiAI