Skip to content

Commit 0d498ea

Browse files
authored
Merge pull request #43 from oscarlevin/tweaks
add final thing to try
2 parents ab21537 + 0ff99bd commit 0d498ea

File tree

1 file changed

+35
-13
lines changed

1 file changed

+35
-13
lines changed

source/ch-copilot.ptx

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<p>
1212
Note that almost everything in this chapter will likely be out of date almost immediately.
13-
The current suggestions here are up to date as of <strong>2025-01-08</strong>.
13+
The current suggestions here are up to date as of <alert>2025-01-08</alert>.
1414
</p>
1515
</introduction>
1616

@@ -116,36 +116,58 @@
116116
<ul>
117117
<li>
118118
<p>
119-
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 <c>CTRL+/</c> to start a comment in most languages.)
119+
Suppose you are trying to write some code in a language you are not that familiar with.
120+
Copilot will suggest the next bit of code for you as you type.
121+
To get better suggestions, put in a comment describing what you want to do.
122+
(Hint: if you don't know the syntax for comments, hit <c>CTRL+/</c> to start a comment in most languages.)
120123
</p>
121124
</li>
125+
122126
<li>
123127
<p>
124-
Does the code do what you want it to? Is it confusing? Ask Copilot to <em>explain</em> the code to you. You can select the code, hit <c>CTRL+I</c>, and then type <c>/explain</c> (note the forward slash).
128+
Does the code do what you want it to? Is it confusing? Ask Copilot to <em>explain</em> the code to you.
129+
You can select the code, hit <c>CTRL+I</c>, and then type <c>/explain</c> (note the forward slash).
125130
</p>
126131
</li>
132+
127133
<li>
128134
<p>
129-
Along these lines, try asking Copilot to document your code for you. Select the code, hit <c>CTRL+I</c>, and then type <c>/doc</c>.
135+
Along these lines, try asking Copilot to document your code for you.
136+
Select the code, hit <c>CTRL+I</c>, and then type <c>/doc</c>.
130137
</p>
131138
</li>
139+
132140
<li>
133141
<p>
134-
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 <pretext /> is done by enclosing them in <tag>c</tag> tags. So I selected the entire document, hit <c>CTRL+I</c> and typed <q>wrap all keyboard shortcuts here with <tag>c</tag> tags.</q> Copilot then let me see where it made changes (line by line) and let me accept them or not.
142+
Here is something I just did while writing this.
143+
I realized that I wanted all the keyboard shortcuts to be displayed as code, which in <pretext /> is done by enclosing them in <tag>c</tag> tags.
144+
So I selected the entire document, hit <c>CTRL+I</c> and typed <q>wrap all keyboard shortcuts here with <tag>c</tag> tags.</q> Copilot then let me see where it made changes (line by line) and let me accept them or not.
135145
</p>
146+
136147
<p>
137-
A very new Copilot feature is <term>Copilot Edits</term>, which allow you to do such things for multiple files at the same time. I suspect this could also be useful for finding typos.
148+
A very new Copilot feature is <term>Copilot Edits</term>, which allow you to do such things for multiple files at the same time.
149+
I suspect this could also be useful for finding typos.
138150
</p>
139151
</li>
152+
140153
<li>
141-
<p>
142-
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 <c>CTRL+I</c>, and ask Copilot to convert it to LaTeX. This can save you a lot of time and ensure that your mathematical notation is accurate.
143-
</p>
144-
<p>
145-
NOTE: I don't know if that's true, the above paragraph was generated by Copilot from the prompt <q>Write a suggestion of something Copilot can do for a mathematician.</q>
146-
</p>
154+
<p>
155+
If you are working on a mathematical proof or a complex equation, you can ask Copilot to help you format it correctly in LaTeX.
156+
Simply type your equation or proof in plain text, select it, hit <c>CTRL+I</c>, and ask Copilot to convert it to LaTeX.
157+
This can save you a lot of time and ensure that your mathematical notation is accurate.
158+
</p>
159+
160+
<p>
161+
NOTE: I don't know if that's true, the above paragraph was generated by Copilot from the prompt <q>Write a suggestion of something Copilot can do for a mathematician.</q>
162+
</p>
147163
</li>
148164
</ul>
149165
</p>
150-
</section>
166+
167+
<p>
168+
One final thing you might want to try: <alert>Turn off completions</alert>.
169+
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.
170+
You can turn off completions by clicking the Copilot icon at the bottom of the VS Code window and selecting <q>Disable completions.</q> You can also disable completions for particular types of files.
171+
</p>
172+
</section>
151173
</chapter>

0 commit comments

Comments
 (0)