Visual Studio Code Extension
Visual Studio Code (VS Code) is a preferred editor for many developers due to its versatility and extensive extension ecosystem. To enhance the experience further, Theneo offers a dedicated VS Code extension that simplifies the creation and previewing of API references directly within the editor.
Installation and Configuration
Install Theneo VS Code Extenstion
Configure the Extension:
- After installation, sign in to your Theneo account at app.theneo.io
- Once signed in, navigate to your profile settings.
- Within your profile settings, locate and select the "Tools & Integrations" section.
- In the "Tools & Integrations" section, find and copy your Theneo API key.
- In VS Code Extension open the command palette by pressing
Ctrl+Shift+P(orCmd+Shift+Pon Mac). - Type 'Preferences: Open Settings (UI)' and select it.
- Search for Theneo Markdown in the “Extensions” section
- Paste your Theneo API key
New Features
- Ability to export projects from Theneo as markdown and json.
- Ability to Import markdown into theneo directly.
- Ability to merge json to an existing project in Theneo.
Usage
Export Project from Theneo
- Open the command palette by pressing Ctrl+Shift+P (or Cmd+Shift+P on Mac).
- Search for “Theneo: Export Project from Theneo”.
- Select the project from your list of published projects created in Theneo.
- Enter a parent directory to export the project and press enter.
Import Project to Theneo
- Open the command palette by pressing Ctrl+Shift+P (or Cmd+Shift+P on Mac).
- Search for “Theneo: Import Project To Theneo”.
- Enter project name after “/”. example
/project - Choose if you want to publish the document.
Merge Project to Theneo
- Open the command palette by pressing Ctrl+Shift+P (or Cmd+Shift+P on Mac).
- Search for "Theneo: Merge Project To Theneo".
- Copy the relative path to the section that you want to merge.
- Pick the project you are merging with (usually the same project as you exported).
- Go over the changes and press commit merge button.
Open Preview
- Open the command palette by pressing Ctrl+Shift+P (or Cmd+Shift+P on Mac).
- Search for “Theneo: Open Current Project Preview”.
- Type the project name and press enter.
The Theneo VS Code extension streamlines the API documentation process by integrating it into your development environment. It saves time and enhances efficiency by eliminating the need to switch between tools for documentation tasks.
With just a few clicks, you can generate a live preview of your API documentation, making it easier to develop and review your API descriptions and endpoints without ever leaving VS Code.
What made this section unhelpful for you?
On this page
- Visual Studio Code Extension