Buckets:
Sleepyfx/my-trading-vscode / vscode /code-server /extensions /continue.continue-1.2.22-linux-x64 /continue_tutorial.py
| """ _________ _____ _____ | |
| __ ____/______ _______ __ /____(_)_______ ____ _______ | |
| _ / _ __ \__ __ \_ __/__ / __ __ \_ / / /_ _ \ | |
| / /___ / /_/ /_ / / // /_ _ / _ / / // /_/ / / __/ | |
| \____/ \____/ /_/ /_/ \__/ /_/ /_/ /_/ \__,_/ \___/ | |
| 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 ——————————————————— # | |
Xet Storage Details
- Size:
- 3.34 kB
- Xet hash:
- 7cc68428c4ecb24f2535410a83ef7420804d2a32a7bdb9e57acbc07923fb7f9d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.