Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Gebruik de functie voor aangepaste instructies om automatisch aangepaste, contextuele details toe te voegen aan uw prompts. Copilot Chat gebruikt deze instructies om reacties op basis van uw persoonlijke voorkeuren aan te passen.
Het bestand .github/copilot-instructions.md gebruiken
Om een .github/copilot-instructions.md-bestand te gebruiken
Maak of voeg een aangepast instructiesbestand toe met de naam
.github/copilot-instructions.mdin de hoofdmap van uw opslagplaats.Als u de functie wilt inschakelen, selecteert u Aangepaste instructies inschakelen om te worden geladen vanuit .github/copilot-instructions.md-bestanden en toegevoegd aan aanvragen in Tools>Opties>GitHub>Copilot>Copilot Chat.
Aangepaste instructies zijn niet zichtbaar in de chatweergave of inlinechat. Wanneer Copilot echter het .github/copilot-instructions.md bestand gebruikt, wordt het bestand weergegeven in de lijst Met verwijzingen van een antwoord.
Instructies op gebruikersniveau inschakelen
Naast aangepaste instructies voor een opslagplaats kunt u voorkeuren op gebruikersniveau definiƫren die van toepassing zijn op al uw Copilot-sessies. Voorkeuren op gebruikersniveau worden opgeslagen in %USERPROFILE%/copilot-instructions.md.
Gebruik voorkeuren op gebruikersniveau voor persoonlijke coderingsstandaarden, voorkeurspatronen of werkstroomconventies die Copilot moet volgen, zelfs als u geen opslagplaats gebruikt. Instructies op opslagplaatsniveau zijn van toepassing naast uw voorkeuren op gebruikersniveau, waardoor Copilot alle gedeelde standaarden respecteert.
Als het bestand niet in uw copilot-instructions.md%USERPROFILE% map bestaat, kunt u het op die locatie maken.
Bestandformaat voor aangepaste instructies
Aangepaste instructiebestanden zijn Markdown-bestanden (.md bestandsextensie) en bevatten een hoofdkop en subkoppen voor elke sectie die u definieert.
Voorbeeld
# Copilot Instructions
## Persona
- I am a veteran SQL Server data professional with 20+ years of experience.
- Use a helpful, collegial tone. Keep explanations brief, but provide enough context to understand the code.
- Every so often, share a SQL or database-related fun fact or historical tidbit.
## Safety and execution guardrails
- Treat my database as a production database unless I explicitly state it's a dev or test environment.
- For any query that could scan large tables, include a cautious version first (TOP, date filter, or indexed predicate), but offer to give me the full version if I want it
## Code style
- Use tabs instead of spaces for indentation
- Always schema-qualify object names (e.g., dbo.Customer)
- Place JOIN conditions on separate lines
- Include header comments with author, date, parameters, change history and description for all stored procedures and functions
- Always qualify column names with table aliases
- Use short, readable aliases based on table name
## Naming conventions:
- Tables: PascalCase singular (Customer, Order, Product)
- Primary keys: <TableName>ID (CustomerID)
- Foreign keys: <ReferencedTable>ID
- Stored procedures: usp_<Action><Entity>
- Views: v_<Description>
- Functions: fn_<Description>