Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Remember Code Block Language

Junyoung BangJunyoung Bang169 downloads

Remember the language of the last code block you used and automatically insert it next time.

  • Overview
  • Scorecard
  • Updates10

This plugin remembers the last language you used and automatically add it to the code block the next time you create a code block.

Just start typing a code block (```) and it'll automatically insert your last used language. You can also set a default language in settings if you tend to use one language more than others.

Features

  • Automatically remembers your last used code block language
  • Command to insert a code block with the remembered language
  • Commands to add a language to code blocks without one in the current note, using an input form or selected text
  • Customizable default language

Installation

Install from the Community Plugins browser in Obsidian, or manually install by copying main.js, manifest.json to your vault's .obsidian/plugins/remember-code-block-lang/ folder.

HealthExcellent
ReviewRisks
About
Remember the last code block language and automatically insert it when you start a code fence, so new code blocks default to your most recent language. Provide a command to insert a code block with the remembered language and allow setting a default language.
CodeAutomationCommands
Details
Current version
1.1.2
Last updated
Last month
Created
11 months ago
Updates
10 releases
Downloads
169
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
Junyoung BangJunyoung Bangzzunebye
github.com/zzunebye
GitHubzzunebye
zzunebye
  1. Community
  2. Plugins
  3. Code
  4. Remember Code Block Language

Related plugins

Templater

Create and use dynamic templates.

Actions URI

Add additional `x-callback-url` endpoints to the app for common actions — it's a clean, super-charged addition to Obsidian URI.

Persistent Graph

Save and restore the positions of nodes on your graph.

Task Collector

Change task status and collect tasks within a document using hotkeys and context menus.

Shell commands

Define system commands that you want to execute via command palette, hotkeys, URI links or automated events. E.g. open external applications or perform automated file modifications.

Refresh Any View

Allows to refresh any view without reopening it.

Attachment Management

Customize attachment path, auto-rename attachments, etc.

CodeScript Toolkit

Allows to do a lot of things with JavaScript/TypeScript scripts from inside the Obsidian itself

Cron

Simple CRON / scheduler to regularly run user scripts or commands.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.