From bd720463ad99d48ad10776f187ba554b7111e77b Mon Sep 17 00:00:00 2001
From: Oscar Levin
Date: Thu, 9 Jan 2025 11:43:39 -0800
Subject: [PATCH 1/2] add final thing to try
---
source/ch-copilot.ptx | 49 +++++++++++++++++++++++++++++++------------
1 file changed, 36 insertions(+), 13 deletions(-)
diff --git a/source/ch-copilot.ptx b/source/ch-copilot.ptx
index 3f6432d..d4da1a2 100644
--- a/source/ch-copilot.ptx
+++ b/source/ch-copilot.ptx
@@ -10,7 +10,7 @@
Note that almost everything in this chapter will likely be out of date almost immediately.
- The current suggestions here are up to date as of 2025-01-08.
+ The current suggestions here are up to date as of 2025-01-08.
@@ -116,36 +116,59 @@
-
- Suppose you are trying to write some code in a language you are not that familiar with. Copilot will suggest the next bit of code for you as you type. To get better suggestions, put in a comment describing what you want to do. (Hint: if you don't know the syntax for comments, hit CTRL+/ to start a comment in most languages.)
+ Suppose you are trying to write some code in a language you are not that familiar with.
+ Copilot will suggest the next bit of code for you as you type.
+ To get better suggestions, put in a comment describing what you want to do.
+ (Hint: if you don't know the syntax for comments, hit CTRL+/ to start a comment in most languages.)
+
-
- Does the code do what you want it to? Is it confusing? Ask Copilot to explain the code to you. You can select the code, hit CTRL+I, and then type /explain (note the forward slash).
+ Does the code do what you want it to? Is it confusing? Ask Copilot to explain the code to you.
+ You can select the code, hit CTRL+I, and then type /explain (note the forward slash).
+
-
- Along these lines, try asking Copilot to document your code for you. Select the code, hit CTRL+I, and then type /doc.
+ Along these lines, try asking Copilot to document your code for you.
+ Select the code, hit CTRL+I, and then type /doc.
+
-
- Here is something I just did while writing this. I realized that I wanted all the keyboard shortcuts to be displayed as code, which in is done by enclosing them in c tags. So I selected the entire document, hit CTRL+I and typed wrap all keyboard shortcuts here with c tags.
Copilot then let me see where it made changes (line by line) and let me accept them or not.
+ Here is something I just did while writing this.
+ I realized that I wanted all the keyboard shortcuts to be displayed as code, which in is done by enclosing them in c tags.
+ So I selected the entire document, hit CTRL+I and typed wrap all keyboard shortcuts here with c tags.
Copilot then let me see where it made changes (line by line) and let me accept them or not.
+
- A very new Copilot feature is Copilot Edits, which allow you to do such things for multiple files at the same time. I suspect this could also be useful for finding typos.
+ A very new Copilot feature is Copilot Edits, which allow you to do such things for multiple files at the same time.
+ I suspect this could also be useful for finding typos.
+
-
-
- If you are working on a mathematical proof or a complex equation, you can ask Copilot to help you format it correctly in LaTeX. Simply type your equation or proof in plain text, select it, hit CTRL+I, and ask Copilot to convert it to LaTeX. This can save you a lot of time and ensure that your mathematical notation is accurate.
-
-
- NOTE: I don't know if that's true, the above paragraph was generated by Copilot from the prompt Write a suggestion of something Copilot can do for a mathematician.
-
+
+ If you are working on a mathematical proof or a complex equation, you can ask Copilot to help you format it correctly in LaTeX.
+ Simply type your equation or proof in plain text, select it, hit CTRL+I, and ask Copilot to convert it to LaTeX.
+ This can save you a lot of time and ensure that your mathematical notation is accurate.
+
+
+
+ NOTE: I don't know if that's true, the above paragraph was generated by Copilot from the prompt Write a suggestion of something Copilot can do for a mathematician.
+
-
+
+
+ One final thing you might want to try: Turn off completions.
+ It can be distracting to see what Copilot thinks you should type next; I have found that it often interrupts the idea I have in my head.
+ You can turn off completions by clicking the Copilot icon at the bottom of the VS Code window and selecting Disable completions.
You can also disable completions for particular types of files.
+
+
+
From 0ff99bd9e2f7f979673039882087f9098732fa0c Mon Sep 17 00:00:00 2001
From: Oscar Levin
Date: Thu, 9 Jan 2025 12:32:18 -0800
Subject: [PATCH 2/2] fix syntax error
---
source/ch-copilot.ptx | 1 -
1 file changed, 1 deletion(-)
diff --git a/source/ch-copilot.ptx b/source/ch-copilot.ptx
index d4da1a2..413aebf 100644
--- a/source/ch-copilot.ptx
+++ b/source/ch-copilot.ptx
@@ -169,6 +169,5 @@
It can be distracting to see what Copilot thinks you should type next; I have found that it often interrupts the idea I have in my head.
You can turn off completions by clicking the Copilot icon at the bottom of the VS Code window and selecting Disable completions.
You can also disable completions for particular types of files.
-