VSCode Editor

by Sun Xvming
5
4
3
2
1
Score: 47/100

Description

Category: File Management

The VSCode Editor plugin for Obsidian is a game-changer for developers who work with code in their notes. This plugin brings the power of VSCode's editor to Obsidian, allowing you to view and edit various code files directly within your vault. With support for over 20 programming languages, including C, Python, JavaScript, and more, this plugin makes it easy to work on code snippets without having to switch between editors.

The plugin offers a range of features that make it easy to use, including customizable themes, font sizes, and shortcuts. You can even edit individual code blocks from within your Markdown documents using the built-in Monaco Editor. Plus, with support for internal links quick preview, you can easily navigate through your code files without having to switch between tabs.

Overall, the VSCode Editor plugin is a must-have for any developer who uses Obsidian as their note-taking tool. It's a powerful and feature-rich plugin that makes it easy to work on code snippets directly within your vault.

Reviews

No reviews yet.

Stats

314
stars
51,013
downloads
34
forks
943
days
165
days
165
days
7
total PRs
4
open PRs
1
closed PRs
2
merged PRs
58
total issues
38
open issues
20
closed issues
1
commits

Latest Version

5 months ago

Changelog

Features

  • Fixed the issue where Ctrl+V could not paste
  • Added font family setting
  • Added font ligatures setting

README file from

Github

About the plugins

Obsidian by default does not support the viewing and editing of various code files, and Obsidian VSCode Editor was created to solve this problem.

It is based on Monaco Editor (VSCode Editor kernel) development, support for viewing and editing of various code format files, including but not limited to: C, C++, C# , CSS, Go, HTML, Java, JavaScript, JSON, Python, Ruby, Rust, Shell, XML, YAML, ini, etc.

You no longer have to open another editor just to view or edit a certain code file, everything is done in Obsidian.

Basic features

  • It does not depend on any third-party network services and can be used even when not connected to the internet.
  • Support for viewing and editing files in various code formats, just like editing code with VSCode.
  • Supports customization of the editor's theme colors, including light and dark themes.
  • Allows customization of the editor's font family, font ligature support, font size, and provides a shortcut to adjust the font size using Ctrl + mouse wheel.
  • Supports editing individual code blocks from any Markdown document (uses Obsidian Monospace font).
  • Supports Internal links quick preview.
  • Supports automatic code wrapping, and toggles it with alt + z.
  • Provides the option to show/hide line numbers.
  • Offers the choice to display/hide indent guides.
  • Allows toggling the display of the code minimap.
  • Supports shortcut icon buttons or commands for creating new code files.

How to support different code file

The default support code file's extensions is ts, js, py, css, c, cpp, go, rs, java, lua, php. you can configure for which file extensions to support in the plugin's setting panel. image.png

Supported Shortcuts

Most of the shortcuts are consistent with VS Code. Here are some of the supported shortcuts:

Category Shortcut Action
Ctrl ctrl + c Copy
ctrl + x Cut
ctrl + v Paste
ctrl + s Save
ctrl + a Select All
ctrl + f Find
ctrl + h Replace
ctrl + z Undo
ctrl + y Redo
ctrl + / Toggle Comment
ctrl + d Duplicate Line
ctrl + [ Decrease Indent
ctrl + ] Increase Indent
ctrl + ↑ Move Line Up
ctrl + ↓ Move Line Down
ctrl + ← Move Cursor Left by Word
ctrl + → Move Cursor Right by Word
ctrl + Backspace Delete Word Left
ctrl + Delete Delete Word Right
Ctrl + Shift ctrl + shift + z Redo
ctrl + shift + k Delete Current Line
ctrl + shift + [ Fold Code Block
ctrl + shift + ] Unfold Code Block
ctrl + shift + enter Insert Line Above
ctrl + enter Insert Line Below
Alt alt + z Toggle Word Wrap

Use screenshot

  • Light color theme image.png

  • Dark color theme image.png

  • Create code file image.png

Supported Code Block Editing

This plugin also supports editing individual code blocks from any Markdown document in the editor. You can just right click on any code block and click on "Edit Code Block in VSCode Editor Plugin".

This will open a new modal with a Monaco Editor instance in which you can edit the code block, which will automatically sync back to the block in your document when you close the modal.

GIF 2023-11-3 10-25-01.gif

You can add a internal link to a code file in obsidian, and hovering the cursor over the link for quick preview. GIF 2023-11-2 19-48-55.gif

Code file will not appear in file prompt list when intert Internal links. You need open Detect all file extensions setting. image.png

Installation

Installation from Obsidian's community plugins:

  1. Open Settings > community plugins
  2. Turn off 'Safe mode'
  3. Click 'Browse' button to browse plugins
  4. Search for 'VSCode Editor'
  5. Click 'Install' button
  6. Once installed, close the plugins browse window and go back community plugins window, and activate the newly installed plugin below installed plugins list

Manual installation:

  1. Enter the latest version of making download page latest release
  2. Download the obsidian-vscode-editor-x.y.z.zip file, where x.y.z is the version number
  3. Extract obsidian-image-toolkit folder from the zip to your vault's plugins folder <vault>/.obsidian/plugins/ (Note: .obsidian folder may be hidden, you need to show it firstly)
  4. Open Settings > community plugins, and reload and activate the plugin below installed plugins list

Contact

If you've got any kind of feedback or questions, feel free to reach out via GitHub issues.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Alt-Click to Copy
2 years ago by Veer Sheth
Android nomedia
3 years ago by JakeisAwesome
When syncing Obsidian with Android you will see a lot of media associated with your vaults. This will add the .nomedia file to ever folder in your Vault.
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Binary File Manager
4 years ago by qawatake
An Obsidian plugin to manage binary files
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Cloudinary Uploader
4 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Code Block
4 years ago by Patrik Lindefors
Code block from selection
5 years ago by Dmitry Savosh
Obsidian plugin. Adds code block for the selected text.
Code Block Labels
4 years ago by Sean Bowers
Provides labels for codeblocks in Obsidian
Code Files
3 years ago by Lukas Bach
Plugin for ObsidianMD to show and edit code files along other notes.
Code Language Completer
2 years ago by Stanley Wang
minimal Obisdian plugin, fine-tuned to speed up developer note-taking
Code::Stats
3 years ago by MiskaMyasa
The Code::Stats plugin allows you to track your coding progress and earn XP for writing markdown in the Obsidian editor.
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
Embed Code File
4 years ago by Abdullah Almariah
Execute Code
4 years ago by twibiral
Obsidian Plugin to execute code in a note.
External File Card
2 years ago by James-Yu
A plugin for Obsidian showing a card displaying basic information of a file in pre-defined folders.
External Rename Handler
a year ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
File chucker
3 years ago by Ken Lim
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Git File Explorer
2 years ago by Mateus Molina
Graphic Organizer
2 months ago by Nick Le Guillou - Superhuman Curiosity
Interactive tree view for visualizing and managing your vault's file hierarchy.
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
Inbox Organiser
a year ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Inline Code Copy
a year ago by Hongchen Lin
Insert Multiple Attachments
a year ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Link indexer
5 years ago by Yuliya Bagriy
Local Any Files
a year ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Luhman
5 years ago by Dylan Elliott
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Media Companion
a year ago by Nick de Bruin
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
New Filename
a year ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Note archiver
3 years ago by thenomadlad
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
Open File by Magic Date
4 years ago by simplgy
Open In Other Editor
4 years ago by Yekingyan
Open current active file in gVim or VScode.
Open vault in VS Code
5 years ago by NomarCub
Open vault in VSCode button for Obsidian.md
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Recently Added Files
a year ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Remote Fetch
8 months ago by Shaharyar
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
Reveal Active File Button
4 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
ruby.wasm
2 years ago by geeknees
Obsidian RubyWasm Plugin
S3agle
2 years ago by Turner Monroe (turnercore)
Screwdriver
4 years ago by vorotamoroz
Shiki Highlighter
2 years ago by Moritz Jung
An Obsidian plugin that offers better code highlighting via shiki and Expressive Code.
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Simple Code Formatter
2 years ago by SY
Format current code block in obsidian.
Simple Image Inserter
2 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Snippetsaurus
a year ago by Christian Humbert
Stenography
5 years ago by bramses
Structured Copy: Files & Folders
a year ago by SchmidA
Svelte Syntax Highlighter
2 years ago by Typhoon-Kim
This plugin adds Svelte syntax highlighting to Obsidian.
sync-db-os
2 years ago by ketd
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Tencent COS for Imgur
a year ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Update Relative Links
4 years ago by val
Update time on edit
5 years ago by beaussan
Vault Transfer
2 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
WebDAV Explorer
2 months ago by 蓝星晓夜
WebDAV Explorer: Connect to WebDAV server, preview files directly in web view, and generate links through simple drag-and-drop.
Webdav File Explorer
3 years ago by red0orange