Markdown Copilot is an OpenAI ChatGPT API client for VSCode.
Markdown Copilot enables you to fully replace the OpenAI ChatGPT WebUI, offering superior features such as:
- Saving conversation histories in Markdown
- Conducting multiple conversations simultaneously
- Branching out conversations
- Editing previous conversations at any point and continuing the conversation
- Nameing files based on conversations
- Titling conversations
Note: An OpenAI or Azure OpenAI API key is required to use this extension. For more information, please refer to the OpenAI official FAQ or Azure OpenAI Quickstart.
Execute multiple auto-edits simultaneously, enhancing your productivity by not having to wait for one edit to complete before starting another.
Manage conversational contexts hierarchically, using quote indentation and syntax colors for visual context highlighting.
Markdown Copilot answers to selected text based on context.
To use, select a text range and choose π‘ Markdown Copilot: Continue
from the code action proposals.
Or use shortcuts for quick access:
Command | Windows / Linux | Mac |
---|---|---|
Trigger suggestion |
Ctrl+Space or Ctrl+I | β+Space or β+I |
The active context is determined by tracing back the quote indent from the cursor line.
Can force a context guard with a line starting with # Copilot Context
.
If you select Then say "take care".
and choose π‘ Markdown Copilot: Continue
, you will get the following output: hello
β good bye
β take care
.
More complex example: the context continues across take care
line.
Specifying a speaker: You can specify a speaker by placing a special Markdown notation at the beginning of a line.
Markdown | Meaning |
---|---|
**User:** |
User is the speaker |
**Copilot:** |
Markdown Copilot is the speaker |
**System(Override):** |
Overrides system message |
**System:** |
Specifies additional system message |
Customize Markdown Copilot's behavior with override options. This allows you to control settings like response length or the AI model directly within your document.
To use override options, simply include a JSON code block labeled json copilot-options
with your desired settings, then select this block along with your text and choose π‘ Markdown Copilot: Continue
from the code action proposals.
Example: Let Markdown Copilot introduce itself with customized response length and model
Introduce yourself.
```json copilot-options
{"max_tokens":50,"model":"gpt-3.5-turbo"}
```
Example: Using the o1-preview
model
The o1-preview
and o1-mini
models do not support system messages, so we will use **System(Override):**
to clear the system messages.
**System(Override):**
**User:**
Introduce yourself.
```json copilot-options
{"model":"o1-preview","temperature":1}
```
For more configuration options, please refer to the OpenAI API: Create chat completion.
Markdown Copilot allows you to name and save a file based on its contents.
To use, select the editor you want to name and save, and use the Markdown Copilot: Name and Save As...
command.
Or use shortcuts for quick access:
Windows / Linux | Mac |
---|---|
Ctrl+Shift+P > Name and Save As | β+β§+P > Name and Save As |
Markdown Copilot allows you to title a conversation based on the conversation history.
Conversation titles are represented as lines beginning with # Copilot Context:
.
To use, move the cursor to the context you want to title and use the Markdown Copilot: Title active context
command.
Or use shortcuts for quick access:
Windows / Linux | Mac |
---|---|
Ctrl+Shift+P > Title active context | β+β§+P > Title active context |
Markdown Copilot allows you to easily import other Markdown files into your current document. This enables you to reference or reuse content from other documents.
To import another Markdown file, use the @import
directive followed by the path to the file you want to import, enclosed in double quotes.
Example with a relative path: Import another-markdown.md
located at a relative position from the current file.
@import "path/to/another-markdown.md"
Example with an absolute path: Use an absolute path from the root directory of the workspace to import toplevel-markdown.md
.
@import "/toplevel-markdown.md"
When the current document is unsaved and thus lacks a confirmed file path, you must use an absolute path to specify other Markdown files to be imported.
Simplify the editing of quote indentation levels with intuitive actions.
Select text and choose π‘ Markdown Copilot: Indent Quote Line
or π‘ Markdown Copilot: Outdent Quote Line
from code action proposals.
Or use these shortcuts:
Command | Windows / Linux | Mac |
---|---|---|
Indent Quote Line |
Ctrl+Alt+L | β+β₯+L |
Outdent Quote Line |
Ctrl+Alt+Shift+L | β+β₯+β§+L |
- Access to the OpenAI API or Azure OpenAI Service is necessary. For details, visit OpenAI API or Azure OpenAI Quickstart.
- Visual Studio Code must be installed. Download it from the Visual Studio Code download page.
Combine Markdown Copilot with these extensions for an even more powerful Markdown experience:
- Markdown All in One: Comprehensive Markdown support (keyboard shortcuts, table of contents, auto preview, and more).
- Snippets: Supercharge your Snippets in VS Code β Manage your code snippets without quitting your editor.
- Markdown Preview Mermaid Support: Adds Mermaid diagram and flowchart support to VS Code's built-in markdown preview.
- Markdown Preview Enhanceded): Markdown Preview Enhanced is a SUPER POWERFUL markdown extension for Visual Studio Code. The goal of this project is to bring you a wonderful markdown writing experience.
- Markdown+Math: Enhance your Markdown with LaTeX Math ... including macros and more.
For detailed updates, refer to the CHANGELOG.
- Report bugs or suggest features via GitHub Issues.
- Share your feedback by leaving a review on the Visual Studio Marketplace.