Skip to content

Commit a0c5c03

Browse files
committed
🤖 Update Copilot instructions
1 parent 504f0fc commit a0c5c03

6 files changed

+26
-15
lines changed

‎.github/copilot-instructions.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../config/copilot-instructions.md

‎.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github/copilot-instructions.md
12
.vscode/
23
node_modules/
34
package-lock.json

‎.vscode/keybindings.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"when": "!editorReadonly"
5353
},
5454
{
55-
"key": "ctrl+cmd+c",
56-
"command": "workbench.panel.chat.view.copilot.focus"
55+
"key": "cmd+i",
56+
"command": "inlineChat.startWithCurrentLine",
57+
"when": "editorFocus && github.copilot.chat.editor.enableLineTrigger && inlineChatHasProvider && !editorReadonly && !inlineChatVisible && editorLangId != 'markdown'"
5758
}
5859
]

‎.vscode/settings.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,12 @@
9292
"github-actions.org-features": true,
9393
"github.copilot.advanced": {},
9494
"github.copilot.editor.enableAutoCompletions": true,
95-
"github.copilot.chat.edits.enabled": true,
96-
"github.copilot.chat.experimental.codeGeneration.instructions": [
97-
{
98-
"file": "/Users/stoe/code/private/.dotfiles/config/copilot-instructions.md"
99-
},
95+
"github.copilot.chat.codeGeneration.instructions": [
10096
{
10197
"file": ".github/copilot-instructions.md"
10298
}
10399
],
100+
"github.copilot.chat.edits.enabled": true,
104101
"github.copilot.enable": {
105102
"*": true,
106103
"javascript": true,
@@ -167,7 +164,7 @@
167164
"markdown.extension.toc.levels": "2..4",
168165
"markdown.previewFrontMatter": "show",
169166
"[markdown]": {
170-
"editor.defaultFormatter": "esbenp.prettier-vscode",
167+
"editor.defaultFormatter": "yzhang.markdown-all-in-one",
171168
"editor.formatOnSave": true
172169
},
173170
"notebook.lineNumbers": "on",
@@ -261,8 +258,8 @@
261258
"window.newWindowDimensions": "inherit",
262259
"window.newWindowProfile": "Default",
263260
"window.zoomLevel": 0.15,
264-
"workbench.activityBar.location": "top",
265261
"workbench.colorTheme": "GitHub Dark Dimmed",
262+
"workbench.activityBar.location": "top",
266263
"workbench.editor.labelFormat": "short",
267264
"workbench.editor.tabActionLocation": "left",
268265
"workbench.editor.tabCloseButton": "left",
@@ -275,7 +272,7 @@
275272
"workbench.iconTheme": "material-icon-theme",
276273
"workbench.layoutControl.enabled": true,
277274
"workbench.layoutControl.type": "both",
278-
"workbench.panel.defaultLocation": "bottom",
275+
"workbench.panel.defaultLocation": "right",
279276
"workbench.preferredDarkColorTheme": "GitHub Dark Dimmed",
280277
"workbench.preferredLightColorTheme": "GitHub Light Colorblind (Beta)",
281278
"workbench.settings.enableNaturalLanguageSearch": false,

‎config/copilot-instructions.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
For any code use `.editorconfig` within the workspace, or the global one at `/Users/stoe/code/private/.dotfiles/.editorconfig`.
1+
For any code use the following configuration files (if they are present):
22

3-
For Ruby code, always use `/Users/stoe/code/private/.dotfiles/config/rubocop/config.yml` as the RuboCop configuration file.
3+
- `<root>/.editorconfig`
44

5-
For JavaScript/TypeScript/Node.js code, always use following config files inside of the workspace (if present):
5+
For all JavaScript/TypeScript/Node.js code, ensure the formatting adheres to the rules specified in the following files (if they are present):
66

7-
- `eslint.config.js`
8-
- `prettier.config.js` and `.prettierignore`, or use the global one at `/Users/stoe/code/private/.dotfiles/prettier.config.js` and `/Users/stoe/code/private/.dotfiles/.prettierignore`.
7+
- `<root>/eslint.config.js`
8+
- `<root>/prettier.config.js` and `<root>/.prettierignore`
9+
10+
When creating comments, follow these guidelines:
11+
12+
- Place inline comments above the code, not on the same line.
13+
- Use full sentences for comments.
14+
- Add JSDoc/HereDoc if missing, but keep it short. Do not align it.
15+
- Keep all lines, including comments, under 120 characters.
16+
- Never comment in Markdown, except code blocks.

‎package.json

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
],
3939
"*.{json,md}": [
4040
"prettier --write"
41+
],
42+
"!(.github/copilot-instructions.md)": [
43+
"prettier --write"
4144
]
4245
},
4346
"prettier": "@github/prettier-config"

0 commit comments

Comments
 (0)