diff --git a/clients/vscode/assets/walkthroughs/codeCompletion.md b/clients/vscode/assets/walkthroughs/codeCompletion.md index 18e4c2b..96d3310 100644 --- a/clients/vscode/assets/walkthroughs/codeCompletion.md +++ b/clients/vscode/assets/walkthroughs/codeCompletion.md @@ -2,8 +2,7 @@ ## Basic Usage -Tabby will show inline suggestions when you stop typing. -You can accept press `Tab` to accept by line, `Ctrl +Tab` key to accept full suggestion, or `Ctrl + RightArrow` to accept single word. +Tabby will show inline suggestions when you stop typing, and you can accept suggestions by just pressing the `Tab` key. ![Demo](https://tabbyml.github.io/tabby/img/demo.gif) @@ -15,7 +14,7 @@ When multiple choices are available, you can cycle through them by pressing `Alt You can select a keybinding profile in the [settings](command:tabby.openSettings), or customize your own [keybindings](command:tabby.openKeybindings). -| | Accept Full Completion | Accept Next Word | Accept Next Line | -| -------------: | :--------------------: | :---------------: | :--------------: | -| _tabby-style_ | Ctrl + Tab | Ctrl + RightArrow | Tab | -| _vscode-style_ | Tab | Ctrl + RightArrow | - | +| | Next Line | Full Completion | Next Word | +| :--------------------------------- | :-------- | :-------------- | :---------------- | +| _vscode-style_ | - | Tab | Ctrl + RightArrow | +| _tabby-style_
_(experimental)_ | Tab | Ctrl + Tab | Ctrl + RightArrow | diff --git a/clients/vscode/package.json b/clients/vscode/package.json index 9f308cf..f088058 100644 --- a/clients/vscode/package.json +++ b/clients/vscode/package.json @@ -124,11 +124,11 @@ "tabby.keybindings": { "type": "string", "enum": [ - "tabby-style", - "vscode-style" + "vscode-style", + "tabby-style" ], - "default": "tabby-style", - "markdownDescription": "Select keybinding profile to accept current inline completion. \n | | Accept Full Completion | Accept Next Word | Accept Next Line | \n |---:|:--:|:--:|:--:| \n | _tabby-style_ | Ctrl + Tab | Ctrl + RightArrow | Tab | \n | _vscode-style_ | Tab | Ctrl + RightArrow | - | \n " + "default": "vscode-style", + "markdownDescription": "Select keybinding profile to accept current inline completion. \n | | Next Line | Full Completion | Next Word | \n |:---:|:---:|:---:|:---:| \n | _vscode-style_ | - | Tab | Ctrl + RightArrow | \n | _tabby-style_
_(experimental)_ | Tab | Ctrl + Tab | Ctrl + RightArrow | \n" }, "tabby.usage.anonymousUsageTracking": { "type": "boolean", diff --git a/clients/vscode/src/agent.ts b/clients/vscode/src/agent.ts index 2db120a..0710123 100644 --- a/clients/vscode/src/agent.ts +++ b/clients/vscode/src/agent.ts @@ -28,8 +28,6 @@ export function agent(): TabbyAgent { export async function createAgentInstance(context: ExtensionContext): Promise { if (!instance) { - // NOTE: env.appHost will be "desktop" when running target "Run Web Extension in VS Code" - // To test data store in the web extension, run target "Run Web Extension in Browser" const extensionDataStore: DataStore = { data: {}, load: async function () {