From d4d1a8eec9fa253e34d650316a73172bcdec3cac Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 20 Mar 2024 16:46:08 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Ctrl/Cmd=20in=20tutorial=20and?= =?UTF-8?q?=20make=20sure=20to=20use=20correct=20one=20for=20OS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/vscode/continue_tutorial.py | 14 +++++++------- extensions/vscode/src/activation/activate.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/vscode/continue_tutorial.py b/extensions/vscode/continue_tutorial.py index 2583d5621..e00c03b23 100644 --- a/extensions/vscode/continue_tutorial.py +++ b/extensions/vscode/continue_tutorial.py @@ -12,7 +12,7 @@ You can either - follow along by clicking the gray CodeLens buttons above the lines, in order, starting with "Begin Section" """ -# region —————————————————————————— Part 1: Ask a question about code [⌘ L] —————————————————————————— +# region —————————————————————————— Part 1: Ask a question about code [Cmd+L] —————————————————————————— """Step 1: Highlight the function below""" @@ -27,14 +27,14 @@ def mysterious_function(x): return x -"""Step 2: Use the keyboard shortcut [⌘ L] to +"""Step 2: Use the keyboard shortcut [Cmd+L] to select the code and toggle the Continue input box""" """Step 3: Ask a question and press Enter""" # endregion -# region ————————————————————————————————— Part 2: Edit code [⌘ I] ————————————————————————————————— +# region ————————————————————————————————— Part 2: Edit code [Cmd+I] ————————————————————————————————— """Step 1: Highlight this code""" @@ -53,16 +53,16 @@ def mysterious_function(x): return x -"""Step 2: Use the keyboard shortcut [⌘ I] to edit""" +"""Step 2: Use the keyboard shortcut [Cmd+I] to edit""" """Step 3: Type "" and press Enter""" """Step 4: Use keyboard shortcuts to -accept [⌘ ⇧ ⏎] or reject [⌘ ⇧ ⌫] the edit""" +accept [Cmd+Shift+Enter] or reject [Cmd+Shift+Backspace] the edit""" # endregion -# region ———————————————————————————— Part 3: Debug automatically [⌘ ⇧ R] ———————————————————————————— +# region ———————————————————————————— Part 3: Debug automatically [Cmd+Shift+R] ———————————————————————————— """Step 1: Run this Python file (it should error!)""" @@ -72,7 +72,7 @@ def print_sum(list_to_print): print(sum(list_to_print)) -"""Step 2: Use the keyboard shortcut [⌘ ⇧ R] +"""Step 2: Use the keyboard shortcut [Cmd+Shift+R] to automatically debug the error""" print_sum(["a", "b", "c"]) diff --git a/extensions/vscode/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts index 3de6b77be..3b999b4b9 100644 --- a/extensions/vscode/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -17,7 +17,7 @@ export async function showTutorial() { // Ensure keyboard shortcuts match OS if (process.platform !== "darwin") { let tutorialContent = fs.readFileSync(tutorialPath, "utf8"); - tutorialContent = tutorialContent.replace("⌘", "^"); + tutorialContent = tutorialContent.replace("⌘", "^").replace("Cmd", "Ctrl"); fs.writeFileSync(tutorialPath, tutorialContent); }