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 Bang86 downloads

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

Add to Obsidian
  • Overview
  • Scorecard
  • Updates7

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
  • 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.

HealthGood
ReviewSatisfactory
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.0.6
Last updated
7 months ago
Created
8 months ago
Updates
7 releases
Downloads
86
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.

Attachment Management

Customize attachment path, auto-rename attachments, etc.

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.

BRAT

Easily install a beta version of a plugin for testing.

Homepage

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

Advanced URI

Control everything with URI.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.