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 "
2324public 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?"
4443public 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 ——————————————————— //
0 commit comments