mermaid and the diagram renders automatically in preview mode."}}, {"@type":"Question","name":"Is there a way to run code blocks directly from Obsidian?","acceptedAnswer":{"@type":"Answer","text":"Use the Obsidian Execute Code plugin. It supports Python, JavaScript, Bash and returns output below the block."}}, {"@type":"Question","name":"What keyboard shortcuts speed up note taking for developers?","acceptedAnswer":{"@type":"Answer","text":"Ctrl+Shift+M toggles markdown preview, Ctrl+P opens the command palette, and Ctrl+Alt+F formats the selected code block."}} ] }

How to Use Obsidian for Developers

Obsidian is a markdown‑based knowledge base that works offline. Developers love it because it stores code snippets, API docs, and project notes in plain text. This guide shows you how to install Obsidian, configure plugins, and turn the app into a personal development hub. Follow each step and you’ll have a searchable, version‑controlled workspace in under an hour.

Table of contents

1. Install Obsidian

Download the binary

Go to obsidian.md/download. Choose the installer for Windows, macOS, or Linux. The file size is about 130 MB.

Obsidian installer window
Obsidian installer on Windows.

First launch

Run the installer and accept the default options. When the app opens, click “Create a new vault”. A vault is simply a folder on your hard drive that Obsidian watches for markdown files.

2. Create and configure your vault

Folder layout

A clean layout helps you find code fast. Use the structure below:

MyDevVault/
├─ 📁 code-snippets/
│   ├─ 📁 python/
│   ├─ 📁 js/
│   └─ 📁 bash/
├─ 📁 projects/
│   ├─ 📁 project‑alpha/
│   └─ 📁 project‑beta/
├─ 📁 docs/
│   ├─ api/
│   └─ architecture/
└─ 📁 templates/

Save the vault in a folder that is also a Git repository (you’ll set that up later).

Basic settings

3. Essential plugins for developers

Obsidian’s community plugin store offers many tools. Install the following from Settings → Community plugins → Browse.

PluginPurposeKey Settings
Obsidian GitPush/pull to a remote repoAuto‑commit every 10 min; use a personal access token
Execute CodeRun code blocks inlineEnable Python, Node.js, Bash; set output style to “inline”
TemplaterInsert boiler‑plate snippetsCreate a “dev‑snippet” template with language front‑matter
Markdown Table FormatterAlign tables automaticallyShortcut Ctrl+Alt+T
MermaidDraw flowcharts and sequence diagramsDefault settings work for most use cases

4. Store, run, and version code snippets

Saving a snippet

Create a new note in code‑snippets/python called 2023-09-01-fetch-api.md. Use the following template:

---
title: Fetch API Example
date: 2023-09-01
tags: python, http
---
Get tools like this in your inbox
One useful tool per week. No spam. Unsubscribe anytime.