diff --git a/using-ai-extensions/1-first-suggestion.js b/using-ai-extensions/1-first-suggestion.js new file mode 100644 index 00000000..e1908229 --- /dev/null +++ b/using-ai-extensions/1-first-suggestion.js @@ -0,0 +1,4 @@ +// Press tab to autocomplete +function calculateDaysBetweenDates(begin, end) { + +} \ No newline at end of file diff --git a/using-ai-extensions/2-alternatives-suggestions.js b/using-ai-extensions/2-alternatives-suggestions.js new file mode 100644 index 00000000..c0a8f033 --- /dev/null +++ b/using-ai-extensions/2-alternatives-suggestions.js @@ -0,0 +1,3 @@ +// Hover over suggestion +function calculateDaysBetweenDates(begin, end) { + diff --git a/using-ai-extensions/3-code-from-comments.js b/using-ai-extensions/3-code-from-comments.js new file mode 100644 index 00000000..36fd7e36 --- /dev/null +++ b/using-ai-extensions/3-code-from-comments.js @@ -0,0 +1,3 @@ +// find all images without alternate text +// and give them a border of 10px +function process() { diff --git a/using-ai-extensions/4-using-framework.js b/using-ai-extensions/4-using-framework.js new file mode 100644 index 00000000..304261b7 --- /dev/null +++ b/using-ai-extensions/4-using-framework.js @@ -0,0 +1,3 @@ +// Express server on port 3000 + +// Return the current time diff --git a/using-ai-extensions/5-aws-block-completion.js b/using-ai-extensions/5-aws-block-completion.js new file mode 100644 index 00000000..c8d6e13c --- /dev/null +++ b/using-ai-extensions/5-aws-block-completion.js @@ -0,0 +1,5 @@ +const name = "G. Michael"; +const song = "C. Whispers"; +if () { + +} \ No newline at end of file diff --git a/using-ai-extensions/6-aws-full-function.js b/using-ai-extensions/6-aws-full-function.js new file mode 100644 index 00000000..8112995f --- /dev/null +++ b/using-ai-extensions/6-aws-full-function.js @@ -0,0 +1 @@ +// add two numbers diff --git a/using-ai-extensions/7-aws-unit-test.js b/using-ai-extensions/7-aws-unit-test.js new file mode 100644 index 00000000..1b22eeea --- /dev/null +++ b/using-ai-extensions/7-aws-unit-test.js @@ -0,0 +1,20 @@ +function mood(isHappy) { + if (isHappy) { + return "I am happy"; + } else { + return "I am not happy"; + } + } + + function greaterThan10(num) { + let isBigEnough = num > 10; + + if (isBigEnough) { + return "num is greater than 10"; + } else { + return "num is not big enough"; + } + } + +// Write unit tests in jest for the following functions: +// mood function works for true diff --git a/using-ai-extensions/instructions.md b/using-ai-extensions/instructions.md new file mode 100644 index 00000000..61ff1fc5 --- /dev/null +++ b/using-ai-extensions/instructions.md @@ -0,0 +1,17 @@ +## Getting Started + +Getting Started with Github Copilot: +https://docs.github.com/en/copilot/getting-started-with-github-copilot?tool=vscode + +See next suggestion: +macOS: `Option (⌥)` +Windows: `Alt + ]` +Linux: `Alt + ]` + +Getting Started with AWS CodeWhisperer: +https://docs.aws.amazon.com/codewhisperer/latest/userguide/whisper-setup-indv-devs.html + +Manually trigger CodeWhisperer: + +macOS: `Option (⌥) + C` +Windows: `Alt + C`