Skip to content

Commit 1b837d7

Browse files
committed
Add default custom command Send Selected Code to Chat
1 parent b94ab81 commit 1b837d7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Tool/Sources/Preferences/Keys.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,17 @@ public extension UserDefaultPreferenceKeys {
271271
generateDescription: true
272272
)
273273
),
274+
.init(
275+
commandId: "BuiltInCustomCommandSendCodeToChat",
276+
name: "Send Selected Code to Chat",
277+
feature: .chatWithSelection(
278+
extraSystemPrompt: "",
279+
prompt: """
280+
{{selected_code}}
281+
""",
282+
useExtraSystemPrompt: true
283+
)
284+
),
274285
], key: "CustomCommands")
275286
}
276287
}

0 commit comments

Comments
 (0)