|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: Open in Typora — VS Code Extension |
| 4 | +category: how-to |
| 5 | +author: typora.io |
| 6 | +tags: |
| 7 | +- vscode |
| 8 | +- cursor |
| 9 | +- ide |
| 10 | +typora-root-url: ../../ |
| 11 | +--- |
| 12 | + |
| 13 | +If you use both **Visual Studio Code** / **Cursor** and **Typora**, you can now switch between them seamlessly with the [**Open in Typora**](https://marketplace.visualstudio.com/items?itemName=typora.typora-open-in-typora) extension for VS Code. |
| 14 | + |
| 15 | +This extension adds an **"Open in Typora"** action to the right-click context menu in VS Code, allowing you to quickly open any Markdown file in Typora with a single click. |
| 16 | + |
| 17 | +## Install |
| 18 | + |
| 19 | +1. Open **Visual Studio Code** or **cursor**. |
| 20 | +2. Go to the **Extensions** view (`Ctrl+Shift+X` / `Cmd+Shift+X`). |
| 21 | +3. Search for **"Open in Typora"**. |
| 22 | +4. Click **Install**. |
| 23 | + |
| 24 | +Or install it directly from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=typora.typora-open-in-typora). |
| 25 | + |
| 26 | +## Usage |
| 27 | + |
| 28 | +1. In VS Code, right-click on a Markdown file in the **Explorer** sidebar or in the **editor tab**. |
| 29 | +2. Select **"Open in Typora"** from the context menu. |
| 30 | +3. The file will open in Typora. |
| 31 | + |
| 32 | +## Supported File Extensions |
| 33 | + |
| 34 | +The following file extensions are supported by default: |
| 35 | + |
| 36 | +`.md`, `.markdown`, `.mdown`, `.mmd`, `.text`, `.txt`, `.rmarkdown`, `.mkd`, `.mdwn`, `.mdtxt`, `.rmd`, `.qmd`, `.mdtext`, `.mdx` |
| 37 | + |
| 38 | +### Customize Supported Extensions |
| 39 | + |
| 40 | +You can customize which file types are available for the "Open in Typora" action by modifying the `typora.supportedExtensions` setting in VS Code: |
| 41 | + |
| 42 | +1. Open **Settings** (`Ctrl+,` / `Cmd+,`). |
| 43 | +2. Search for `typora.supportedExtensions`. |
| 44 | +3. Edit the list of extensions (without the dot prefix), for example: |
| 45 | + |
| 46 | +```json |
| 47 | +"typora.supportedExtensions": ["md", "markdown", "txt", "qmd"] |
| 48 | +``` |
| 49 | + |
| 50 | +## Requirements |
| 51 | + |
| 52 | +- **Typora** must be installed on your system. |
| 53 | +- **VS Code** 1.85.0 or higher. |
| 54 | +- On **Windows** and **Linux**, `typora` should be available in your system `PATH`. |
| 55 | + |
| 56 | +## Source Code |
| 57 | + |
| 58 | +The extension is open source. Visit the [GitHub repository](https://github.com/typora/vscode-open-in-typora) for source code and issue reporting. |
0 commit comments