Skip to content

Commit 5b0ecb2

Browse files
authored
Merge pull request #5639 from continuedev/pe/agent-mode-onboarding
2 parents e0b38ea + b358be2 commit 5b0ecb2

File tree

4 files changed

+94
-98
lines changed

4 files changed

+94
-98
lines changed

extensions/intellij/src/main/resources/continue_tutorial.java

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
// / /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/
55
// \____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/
66
//
7-
// Chat, Edit, and Autocomplete tutorial
7+
// Autocomplete, Edit, Chat, and Agent tutorial
88
//
99

10-
// ———————————————————————————————————————————————— Setup ————————————————————————————————————————————————-
10+
// ————————————————————————————————————————————— Autocomplete —————————————————————————————————————————————— //
11+
// Autocomplete provides inline code suggestions as you type.
1112

12-
// First, open the Continue sidebar by pressing [Cmd + L] or clicking the Continue icon.
13+
// 1. Place cursor after `sortingAlgorithm:` below and press [Enter]
14+
// 2. Press [Tab] to accept the Autocomplete suggestion
1315

14-
// See an example at https://docs.continue.dev/getting-started/install
15-
16-
// Follow the instructions in the sidebar to set up a Chat/Edit modela and an Autocomplete model.
16+
// Basic assertion for sortingAlgorithm:
1717

18-
// ————————————————————————————————————————————————— Chat —————————————————————————————————————————————————
18+
// ————————————————————————————————————————————————— Edit ————————————————————————————————————————————————— //
19+
// Edit is a convenient way to make quick changes to specific code and files.
1920

20-
// Highlight the code below
21-
// Press [Cmd + L] to add to Chat
22-
// Try asking Continue "what sorting algorithm is this?"
21+
// 1. Highlight the code below
22+
// 2. Press [Cmd/Ctrl + I] to Edit
23+
// 3. Try asking Continue to "make this more readable"
2324
public static int[] sortingAlgorithm(int[] x) {
2425
for (int i = 0; i < x.length; i++) {
2526
for (int j = 0; j < x.length - 1; j++) {
@@ -33,14 +34,12 @@ public static int[] sortingAlgorithm(int[] x) {
3334
return x;
3435
}
3536

36-
// [Cmd + L] always starts a new chat. Now, try the same thing using [Cmd + Shift + L].
37-
// This will add the code into the current chat
37+
// ————————————————————————————————————————————————— Chat ————————————————————————————————————————————————— //
38+
// Chat makes it easy to ask for help from an LLM without needing to leave the IDE.
3839

39-
// ————————————————————————————————————————————————— Edit —————————————————————————————————————————————————
40-
41-
// Highlight the code below
42-
// Press [Cmd + I] to Edit
43-
// Try asking Continue to "make this more readable"
40+
// 1. Highlight the code below
41+
// 2. Press [Cmd/Ctrl + J] to add to Chat
42+
// 3. Try asking Continue "what sorting algorithm is this?"
4443
public static int[] sortingAlgorithm2(int[] x) {
4544
for (int i = 0; i < x.length; i++) {
4645
for (int j = 0; j < x.length - 1; j++) {
@@ -54,15 +53,11 @@ public static int[] sortingAlgorithm2(int[] x) {
5453
return x;
5554
}
5655

57-
// ————————————————————————————————————————————— Autocomplete ——————————————————————————————————————————————
58-
59-
// Place cursor after `sortingAlgorithm:` below and press [Enter]
60-
// Press [Tab] to accept the Autocomplete suggestion
61-
62-
// Basic assertion for sortingAlgorithm:
63-
64-
56+
// ————————————————————————————————————————————————— Agent ————————————————————————————————————————————————— //
57+
// Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing
58+
// the model to make decisions and save you the work of manually finding context and performing actions.
6559

66-
// —————————————————————————————————————————————- Learn More -——————————————————————————————————————————————
60+
// 1. Switch from "Chat" to "Agent" mode using the dropdown in the bottom left of the input box
61+
// 2. Try asking Continue "Write unit tests for this code in a new file and run the test"
6762

68-
// Visit the Continue Docs at https://docs.continue.dev/getting-started/overview
63+
// —————————————————— Learn more at https://docs.continue.dev/getting-started/overview ——————————————————— //

extensions/intellij/src/main/resources/continue_tutorial.py

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,49 @@
44
/ /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/
55
\____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/
66
7-
Chat, Edit, and Autocomplete tutorial
7+
Autocomplete, Edit, Chat, and Agent tutorial
88
"""
99

10-
# ———————————————————————————————————————————————— Setup ————————————————————————————————————————————————-
1110

12-
# First, open the Continue sidebar by pressing [Cmd + L] or clicking the Continue icon.
11+
# ————————————————————————————————————————————— Autocomplete —————————————————————————————————————————————— #
12+
# Autocomplete provides inline code suggestions as you type.
1313

14-
# See an example at https://docs.continue.dev/getting-started/install
14+
# 1. Place cursor after `sorting_algorithm:` below and press [Enter]
15+
# 2. Press [Tab] to accept the Autocomplete suggestion
1516

16-
# Follow the instructions in the sidebar to set up a Chat/Edit modela and an Autocomplete model.
17+
# Basic assertion for sorting_algorithm:
1718

18-
# ————————————————————————————————————————————————— Chat —————————————————————————————————————————————————
19+
# ————————————————————————————————————————————————— Edit ————————————————————————————————————————————————— #
20+
# Edit is a convenient way to make quick changes to specific code and files.
1921

20-
## Highlight the code below
21-
## Press [Cmd + L] to add to Chat
22-
## Try asking Continue "what sorting algorithm is this?"
22+
# 1. Highlight the code below
23+
# 2. Press [Cmd/Ctrl + I] to Edit
24+
# 3. Try asking Continue to "make this more readable"
2325
def sorting_algorithm(x):
2426
for i in range(len(x)):
2527
for j in range(len(x) - 1):
2628
if x[j] > x[j + 1]:
2729
x[j], x[j + 1] = x[j + 1], x[j]
2830
return x
2931

30-
# [Cmd + L] always starts a new chat. Now, try the same thing using [Cmd + Shift + L].
31-
# This will add the code into the current chat
32-
33-
# ————————————————————————————————————————————————— Edit —————————————————————————————————————————————————
32+
# ————————————————————————————————————————————————— Chat ————————————————————————————————————————————————— #
33+
# Chat makes it easy to ask for help from an LLM without needing to leave the IDE.
3434

35-
## Highlight the code below
36-
## Press [Cmd + I] to Edit
37-
## Try asking Continue to "make this more readable"
38-
def sorting_algorithm(x):
35+
# 1. Highlight the code below
36+
# 2. Press [Cmd/Ctrl + J] to add to Chat
37+
# 3. Try asking Continue "what sorting algorithm is this?"
38+
def sorting_algorithm2(x):
3939
for i in range(len(x)):
4040
for j in range(len(x) - 1):
4141
if x[j] > x[j + 1]:
4242
x[j], x[j + 1] = x[j + 1], x[j]
4343
return x
4444

45-
# ————————————————————————————————————————————— Autocomplete ——————————————————————————————————————————————
46-
47-
## Place cursor after `sorting_algorithm:` below and press [Enter]
48-
## Press [Tab] to accept the Autocomplete suggestion
49-
50-
# Basic assertion for sorting_algorithm:
51-
52-
53-
45+
# ————————————————————————————————————————————————— Agent ————————————————————————————————————————————————— #
46+
# Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing
47+
# the model to make decisions and save you the work of manually finding context and performing actions.
5448

55-
# —————————————————————————————————————————————- Learn More -——————————————————————————————————————————————
49+
# 1. Switch from "Chat" to "Agent" mode using the dropdown in the bottom left of the input box
50+
# 2. Try asking Continue "Write unit tests for this code in a new file and run the test"
5651

57-
# Visit the Continue Docs at https://docs.continue.dev/getting-started/overview
52+
# —————————————————— Learn more at https://docs.continue.dev/getting-started/overview ——————————————————— #

extensions/intellij/src/main/resources/continue_tutorial.ts

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
// / /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/
55
// \____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/
66
//
7-
// Chat, Edit, and Autocomplete tutorial
7+
// Autocomplete, Edit, Chat, and Agent tutorial
88
//
99

10-
// ———————————————————————————————————————————————— Setup ————————————————————————————————————————————————-
10+
// ————————————————————————————————————————————— Autocomplete —————————————————————————————————————————————— //
11+
// Autocomplete provides inline code suggestions as you type.
1112

12-
// First, open the Continue sidebar by pressing [Cmd + L] or clicking the Continue icon.
13+
// 1. Place cursor after `sortingAlgorithm:` below and press [Enter]
14+
// 2. Press [Tab] to accept the Autocomplete suggestion
1315

14-
// See an example at https://docs.continue.dev/getting-started/install
15-
16-
// Follow the instructions in the sidebar to set up a Chat/Edit modela and an Autocomplete model.
16+
// Basic assertion for sortingAlgorithm:
1717

18-
// ————————————————————————————————————————————————— Chat —————————————————————————————————————————————————
18+
// ————————————————————————————————————————————————— Edit ————————————————————————————————————————————————— //
19+
// Edit is a convenient way to make quick changes to specific code and files.
1920

20-
// Highlight the code below
21-
// Press [Cmd + L] to add to Chat
22-
// Try asking Continue "what sorting algorithm is this?"
21+
// 1. Highlight the code below
22+
// 2. Press [Cmd/Ctrl + I] to Edit
23+
// 3. Try asking Continue to "make this more readable"
2324
function sortingAlgorithm(x: number[]): number[] {
2425
for (let i = 0; i < x.length; i++) {
2526
for (let j = 0; j < x.length - 1; j++) {
@@ -33,14 +34,12 @@ function sortingAlgorithm(x: number[]): number[] {
3334
return x;
3435
}
3536

36-
// [Cmd + L] always starts a new chat. Now, try the same thing using [Cmd + Shift + L].
37-
// This will add the code into the current chat
38-
39-
// ————————————————————————————————————————————————— Edit —————————————————————————————————————————————————
37+
// ————————————————————————————————————————————————— Chat ————————————————————————————————————————————————— //
38+
// Chat makes it easy to ask for help from an LLM without needing to leave the IDE.
4039

41-
// Highlight the code below
42-
// Press [Cmd + I] to Edit
43-
// Try asking Continue to "make this more readable"
40+
// 1. Highlight the code below
41+
// 2. Press [Cmd/Ctrl + J] to add to Chat
42+
// 3. Try asking Continue "what sorting algorithm is this?"
4443
function sortingAlgorithm2(x: number[]): number[] {
4544
for (let i = 0; i < x.length; i++) {
4645
for (let j = 0; j < x.length - 1; j++) {
@@ -54,13 +53,11 @@ function sortingAlgorithm2(x: number[]): number[] {
5453
return x;
5554
}
5655

57-
// ————————————————————————————————————————————— Autocomplete ——————————————————————————————————————————————
58-
59-
// Place cursor after `sortingAlgorithm:` below and press [Enter]
60-
// Press [Tab] to accept the Autocomplete suggestion
61-
62-
// Basic assertion for sortingAlgorithm:
56+
// ————————————————————————————————————————————————— Agent ————————————————————————————————————————————————— //
57+
// Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing
58+
// the model to make decisions and save you the work of manually finding context and performing actions.
6359

64-
// —————————————————————————————————————————————- Learn More -——————————————————————————————————————————————
60+
// 1. Switch from "Chat" to "Agent" mode using the dropdown in the bottom left of the input box
61+
// 2. Try asking Continue "Write unit tests for this code in a new file"
6562

66-
// Visit the Continue Docs at https://docs.continue.dev/getting-started/overview
63+
// —————————————————— Learn more at https://docs.continue.dev/getting-started/overview ——————————————————— //

0 commit comments

Comments
 (0)