Repository navigation
Expand file tree
/
Copy pathDefault.sublime-commands
More file actions
89 lines (89 loc) · 3.34 KB
/
Copy pathDefault.sublime-commands
File metadata and controls
89 lines (89 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[
{
"caption": "CodeContinue: Configure",
"command": "code_continue_configure",
"description": "Configure API endpoint, model, and API key for CodeContinue"
},
{
"caption": "CodeContinue: Suggest",
"command": "code_continue_suggest",
"description": "Get a code suggestion from CodeContinue"
},
{
"caption": "CodeContinue: Dismiss Suggestion",
"command": "code_continue_dismiss",
"description": "Dismiss currently visible code suggestion"
},
{
"caption": "Preferences: CodeContinue Settings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/CodeContinue/CodeContinue.sublime-settings",
"default": "// CodeContinue Settings - User\n// See default settings for available options\n{\n\t$0\n}\n"
}
},
{
"caption": "Preferences: CodeContinue Key Bindings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/CodeContinue/Default.sublime-keymap",
"user_file": "${packages}/User/Default (${platform}).sublime-keymap",
"default": "[\n\t$0\n]\n"
}
},
{
"caption": "CodeContinue: Switch Model...",
"command": "code_continue_switch_model",
"description": "Switch active model for completions, chat, or editing"
},
{
"caption": "CodeContinue: Chat about Selection",
"command": "code_continue_chat",
"description": "Chat with LLM about selected code"
},
{
"caption": "CodeContinue: Explain Selection",
"command": "code_continue_chat",
"args": {
"initial_message": "Explain this code in detail: break down the logic, edge cases, and any assumptions."
},
"description": "Explain logic and complexity of selected code"
},
{
"caption": "CodeContinue: Find Bugs & Vulnerabilities",
"command": "code_continue_chat",
"args": {
"initial_message": "Analyze this code for potential bugs, edge cases, performance bottlenecks, and security vulnerabilities. Suggest specific fixes."
},
"description": "Review selection for bugs, performance issues, and vulnerabilities"
},
{
"caption": "CodeContinue: Generate Unit Tests",
"command": "code_continue_chat",
"args": {
"initial_message": "Generate comprehensive unit tests for this code with thorough edge-case coverage."
},
"description": "Generate unit tests with edge-case coverage"
},
{
"caption": "CodeContinue: Edit Selection",
"command": "code_continue_edit",
"description": "Rewrite selected code using an instruction"
},
{
"caption": "CodeContinue: Add Docstrings & Types",
"command": "code_continue_edit",
"args": {
"instruction": "Add clean docstrings and type annotations to this code without altering logic."
},
"description": "Add type hints and docstrings to selection"
},
{
"caption": "CodeContinue: Optimize & Clean Code",
"command": "code_continue_edit",
"args": {
"instruction": "Refactor and optimize this code for readability, performance, and best practices."
},
"description": "Refactor and optimize selection"
}
]