forked from TabbyML/tabby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vscode): update in-extension documentation for 1.7.x. (TabbyML#2389)
* fix(vscode): update walkthroughs for 1.7.x. * refactor: rename.
- Loading branch information
Showing
21 changed files
with
189 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Chat | ||
|
||
**Note**: Chat features are only available when your server supports them. You need to launch the server with the chat model option enabled, for example, `--chat-model Mistral-7B`. | ||
|
||
## Chat View | ||
|
||
You can start a session in the chat view from the activity bar. | ||
|
||
![Chat View](./chatView.png) | ||
|
||
### Specific Questions about Selected Code | ||
|
||
Select some code, open the command palette and search for command such as [Tabby: Explain This](command:tabby.chat.explainCodeBlock) to ask a question about the selected code. | ||
|
||
![Chat View With Selected](./chatViewWithSelected.png) | ||
|
||
## Use the Chat Feature to Edit the Code Directly | ||
|
||
If you want to use the chat feature to edit the code directly, you can use the [Tabby: Edit...](command:tabby.chat.edit.start) command (shortcut: `Ctrl/Cmd+I`). You can input your request or select a preset command, and Tabby will start editing to meet your needs. | ||
|
||
![Chat Edit](./chatEdit.png) | ||
|
||
Once the editing is completed, you can select `Accept`(shortcut: `Ctrl/Cmd+Enter`) or `Discard` (shortcut: `Esc`) to deal with the changes You can also use `Esc` to stop the ongoing editing. | ||
Note that the shortcuts require your cursor to be positioned on the header line of the editing block, and the cursor is positioned there by default when the editing is started. | ||
|
||
![Chat Edit Completed](./chatEditCompleted.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
# Code Completion | ||
|
||
## Basic Usage | ||
## Autocomplete | ||
|
||
Tabby will show inline suggestions when you stop typing, and you can accept suggestions by just pressing the `Tab` key. | ||
Tabby suggests multi-line code completions and full functions in real-time as you write code. You can accept suggestions by simply pressing the `Tab` key. | ||
|
||
![Demo](https://tabby.tabbyml.com/img/demo.gif) | ||
![Autocomplete Demo](https://tabby.tabbyml.com/img/demo.gif) | ||
|
||
## Manual Trigger | ||
### Multiple Choice | ||
|
||
If you select manual trigger in the [settings](command:tabby.openSettings), you can trigger code completion by pressing `Alt + \`. | ||
To access more suggestion choices, hover over a suggestion, or press `Alt + [` or `Alt + ]` to cycle through the suggestions. There may be a slight delay as the alternative choices are generated upon your request. | ||
|
||
## Keybindings | ||
![Multiple Choice Demo](./multipleChoice.png) | ||
|
||
You can select a keybinding profile in the [settings](command:tabby.openSettings), or customize your own [keybindings](command:tabby.openKeybindings). | ||
## Manual Trigger Mode | ||
|
||
| | Next Line | Full Completion | Next Word | | ||
| :-------------------------------- | :-------- | :-------------- | :---------------------------------------------- | | ||
| _vscode-style_ | - | Tab | Ctrl + RightArrow <br> Cmd + RightArrow (macOS) | | ||
| _tabby-style_<br>_(experimental)_ | Tab | Ctrl + Tab | Ctrl + RightArrow <br> Cmd + RightArrow (macOS) | | ||
If you prefer to use Tabby code completion in a more manual way. You can select the manual trigger mode in the [Settings](command:tabby.openSettings). This mode allows you to trigger code completion by pressing `Alt + \`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Tabby Commands | ||
|
||
Search for Tabby commands by typing `Tabby` in the command palette. | ||
|
||
![Commands](./commands.png) | ||
|
||
**Note**: Commands related to chat features are only visible when your server supports them. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Connect to Server | ||
|
||
**Tips**: If you are using local deployment and default port `http://localhost:8080`, you can simply skip this step. | ||
|
||
Open the command palette (`Ctrl+Shift+P` or `Cmd+Shift+P`) and search for the command [Tabby: Connect to Server...](command:tabby.setApiEndpoint). Follow the instructions to input the Tabby server's endpoint URL and the token. | ||
|
||
![connectToServer](./connectToServer.png) | ||
|
||
Once the connection is established, you will see the Tabby status bar item showing checkmark. | ||
|
||
![statusbarReady](./statusbarReady.png) | ||
|
||
Alternatively, you can set the endpoint in the [Settings](command:tabby.openSettings). | ||
|
||
## Cross-IDE Settings | ||
|
||
If you are using multiple IDEs, you can use the [Config File](command:tabby.openTabbyAgentSettings) to share the settings across IDEs. Refer to the [Online Documentation](https://tabby.tabbyml.com/docs/extensions/configurations/) for more details. |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Keyboard Shortcuts | ||
|
||
## Inline Completion | ||
|
||
You can customize keybindings for inline completion in Tabby by selecting a keybinding profile in the [Settings](command:tabby.openSettings). | ||
|
||
| | Next Line | Full Completion | Next Word | | ||
| :-------------------------------- | :-------- | :-------------- | :---------------------------------------------- | | ||
| _vscode-style_ | - | Tab | Ctrl + RightArrow <br> Cmd + RightArrow (macOS) | | ||
| _tabby-style_<br>_(experimental)_ | Tab | Ctrl + Tab | Ctrl + RightArrow <br> Cmd + RightArrow (macOS) | | ||
|
||
## Other commands | ||
|
||
To further customize keyboard shortcuts, you can edit them in the [Keyboard Shortcuts](command:tabby.openKeybindings). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Setup Tabby Server | ||
|
||
The Tabby VSCode extension requires a Tabby server to work, following the instructions below to install and create your account. | ||
|
||
## Install Tabby Server | ||
|
||
[Tabby](https://tabby.tabbyml.com/) is an open-source project that supports self-hosting. | ||
You can choose any of the following methods to install Tabby: | ||
|
||
- [Homebrew](https://tabby.tabbyml.com/docs/quick-start/installation/apple/) for macOS with Apple M-series chips. | ||
- [Binary distribution](https://tabby.tabbyml.com/docs/quick-start/installation/windows/) for Windows/Linux users. | ||
- For NVIDIA GPUs, please check your CUDA version and select the binary distribution with `cuda` version suffix. | ||
- For other GPUs with Vulkan support, please select the binary distribution with `vulkan` suffix. | ||
- [Docker](https://tabby.tabbyml.com/docs/quick-start/installation/docker/) if you prefer to run Tabby in a container. [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) is strongly recommended for NVIDIA CUDA support. | ||
- Cloud deployment | ||
- [Hugging Face Spaces](https://tabby.tabbyml.com/docs/quick-start/installation/hugging-face/) | ||
- [Modal](https://tabby.tabbyml.com/docs/quick-start/installation/modal/) | ||
- [SkyPilot](https://tabby.tabbyml.com/docs/quick-start/installation/skypilot/) | ||
|
||
## Create Your Account | ||
|
||
Visit [http://localhost:8080/](http://localhost:8080/) (or your server address) and follow the instructions to create your account. After creating your account, you can find your token for connecting to the server. | ||
|
||
## [Online Supports](command:tabby.openOnlineHelp) | ||
|
||
Please refer to our [online documentation](https://tabby.tabbyml.com/) and our [Github repository](https://github.com/tabbyml/tabby) for more information. | ||
If you encounter any problems during server setup, please join our [Slack community](https://links.tabbyml.com/join-slack-extensions) for support or [open an issue](https://github.com/TabbyML/tabby/issues/new/choose). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.