From 3539e61f4cb578b5a8700a175c8d911c9c18d35f Mon Sep 17 00:00:00 2001 From: Luke Murray <24467442+lukemurraynz@users.noreply.github.com> Date: Mon, 11 Nov 2024 08:46:13 +1300 Subject: [PATCH] Configured devcontainer for copilot-instructs. --- .devcontainer/devcontainer.json | 23 +++++++++-------------- .github/copilot-instructions.md | 2 ++ 2 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 .github/copilot-instructions.md diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 312c578c5d9..5a7fe762dac 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,19 +1,14 @@ { "image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04", - "settings": { - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - } - }, + + // "customizations" section allows configuring specific aspects of the development environment, such as VS Code settings and extensions. + "customizations": { + "vscode": { + // Defines VS Code settings to be applied within the dev container. + "settings": { + "editor.formatOnSaveMode": "file", // Configures format on save to be applied to the entire file. + "github.copilot.chat.codeGeneration.useInstructionFiles": "true" + }, "extensions": [ "dbaeumer.vscode-eslint", "orta.vscode-jest", diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 00000000000..3d7d8298e81 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,2 @@ +Make sure text aligns to markdown best practices +Make sure text response is not complicated, it needs to be read by people with beginner, intermediate and expert knowledge on the subject \ No newline at end of file