Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Inline Completion SampleNew to Visual Studio Code? Get it now.
Inline Completion Sample

Inline Completion Sample

qingyi.xjh

|
35 installs
| (0) | Free
Sample showing how to implement an inline completion provider
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Inline Completions Sample

This sample demonstrates usage of the proposed inline completions API.

The postinstall script uses vscode-dts dev && vscode-dts main to download latest version of vscode.d.ts and vscode.proposed.d.ts from the master branch of microsoft/vscode.

You can read more about vscode-dts at: https://github.com/microsoft/vscode-dts.

  • ⚠️ This sample can only be used for extension development in Insider release. You cannot publish extensions using Proposed API.
  • You need "enableProposedApi": true in package.json.

Demo Video

VS Code API

Not documented, as the used API is not finalized.

Running the Sample

  • Run npm install in terminal to install dependencies
  • A postinstall script would download latest version of vscode.proposed.d.ts
  • Run the Run Extension target in the Debug View. This will:
    • Start a task npm: watch to compile the code
    • Run the extension in a new VS Code window

Make sure that showInlineCompletions is enabled in your settings!

"editor.inlineSuggest.enabled": true
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft