Files
continue/extensions/vscode/continue_tutorial.py
BekahHW 32d7ba280f docs: features to ide extensions (#8219)
* Add autocomplete gif

* Add edit quickstart gif

* Add chat gif

* Add agent gif

* Fix broken image path

* Change Features to IDE Extensions

* Moved install and quickstart to ext and created redirects

* Move pages in docs.json

* Move examples from overview to extensions

* Remove the Overview and redirect to the index

* Fix Redirect

* Update docs/chat/how-to-use-it.mdx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* Redirect model pages to customize

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-10-13 18:43:47 -04:00

53 lines
3.3 KiB
Python

""" _________ _____ _____
__ ____/______ _______ __ /____(_)_______ ____ _______
_ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \
/ /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/
\____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/
Autocomplete, Edit, Chat, and Agent tutorial
"""
# ————————————————————————————————————————————— Autocomplete —————————————————————————————————————————————— #
# Autocomplete provides inline code suggestions as you type.
# 1. Place cursor after `sorting_algorithm:` below and press [Enter]
# 2. Press [Tab] to accept the Autocomplete suggestion
# Basic assertion for sorting_algorithm:
# ————————————————————————————————————————————————— Edit ————————————————————————————————————————————————— #
# Edit is a convenient way to make quick changes to specific code and files.
# 1. Highlight the code below
# 2. Press [Cmd/Ctrl + I] to Edit
# 3. Try asking Continue to "make this more readable"
def sorting_algorithm(x):
for i in range(len(x)):
for j in range(len(x) - 1):
if x[j] > x[j + 1]:
x[j], x[j + 1] = x[j + 1], x[j]
return x
# ————————————————————————————————————————————————— Chat ————————————————————————————————————————————————— #
# Chat makes it easy to ask for help from an LLM without needing to leave the IDE.
# 1. Highlight the code below
# 2. Press [Cmd/Ctrl + L] to add to Chat
# 3. Try asking Continue "what sorting algorithm is this?"
def sorting_algorithm2(x):
for i in range(len(x)):
for j in range(len(x) - 1):
if x[j] > x[j + 1]:
x[j], x[j + 1] = x[j + 1], x[j]
return x
# ————————————————————————————————————————————————— Agent ————————————————————————————————————————————————— #
# Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing
# the model to make decisions and save you the work of manually finding context and performing actions.
# 1. Switch from "Chat" to "Agent" mode using the dropdown in the bottom left of the input box
# 2. Use the "/init" slash command to generate a CONTINUE.md file
# —————————————————— Learn more at https://docs.continue.dev ——————————————————— #