mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 13:40:25 +00:00
add prompt and instructions template, create prompt files empty (#247326)
This commit is contained in:
committed by
GitHub
parent
692bb22057
commit
4c87d311f0
@@ -67,7 +67,17 @@
|
||||
"editor.unicodeHighlight.invisibleCharacters": false,
|
||||
"diffEditor.ignoreTrimWhitespace": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"snippets": [
|
||||
{
|
||||
"language": "prompt",
|
||||
"path": "./snippets/prompt.code-snippets"
|
||||
},
|
||||
{
|
||||
"language": "instructions",
|
||||
"path": "./snippets/instructions.code-snippets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"scripts": {},
|
||||
"repository": {
|
||||
|
||||
10
extensions/prompt-basics/snippets/instructions.code-snippets
Normal file
10
extensions/prompt-basics/snippets/instructions.code-snippets
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"fileTemplate": {
|
||||
"prefix": "New Chat Instructions",
|
||||
"body": [
|
||||
"${1:instructions}",
|
||||
],
|
||||
"description": "Template for chat instructions",
|
||||
"isFileTemplate": true,
|
||||
}
|
||||
}
|
||||
13
extensions/prompt-basics/snippets/prompt.code-snippets
Normal file
13
extensions/prompt-basics/snippets/prompt.code-snippets
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"fileTemplate": {
|
||||
"prefix": "New Chat Prompt",
|
||||
"body": [
|
||||
"---",
|
||||
"mode: '${1|ask,edit,agent|}'",
|
||||
"---",
|
||||
"${2:prompt}",
|
||||
],
|
||||
"description": "Template for chat prompt",
|
||||
"isFileTemplate": true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user